[CSHARP-1663] MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException Created: 12/May/16 Updated: 05/Apr/19 Resolved: 22/Jan/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | TD [X] | Assignee: | Robert Stam |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows / C# / .NET 4.0.30319 |
||
| Issue Links: |
|
||||||||
| Description |
|
In this scenario, there are two computers with a 1Gbps private link. After a few days of running with roughly 10-15 transactions / seconds, I am getting Timeout errors. The database replies properly on its host. There is no replica set, etc, just a single database. Exception Info: System.TimeoutException |
| Comments |
| Comment by Robert Stam [ 22/Jan/18 ] |
|
Linking to |
| Comment by TD [X] [ 13/May/16 ] |
|
Hi Craig, I don't have the logs with the exception anymore; unfortunately this one happens after a few days, so I will have to wait for the next instance. On the same system, I also get a queue full exception regularly;I wonder if it is possible that both are related as multiple services talk to the DB; possibly one times out if the queue is full causing the error from above. This is what I get regularly: I have this in the connection string: ?maxPoolSize=10000 so I am assuming the queue is large enough. As the API has now been async for a while, the code just throws requests whenever it needs them. |
| Comment by Craig Wilson [ 12/May/16 ] |
|
Hi TD, Sorry you are having some trouble. Could you provide the exception message, not just the exception stacktrace? The message contains some valuable information about the state of the current cluster. Also, if you could provide the client.Cluster.ClusterDescription.ToString() value at the time you are getting the exception, that could be helpful as well. Thanks, |