Currently, the wait queue size doesn't affect the server selection wait queue size. We either need to start setting it, or determine a different way to handle queuing (or lack thereof) in the server selection loop.
Workaround
const int maxWaitQueueSize = 5000; // set this to a value that is appropriate var settings = new MongoClientSettings(); settings.WaitQueueSize = maxWaitQueueSize; // this is the workaround for the bug. settings.ClusterConfigurator = cb => { cb.ConfigureCluster(cs => cs.With(maxServerSelectionWaitQueueSize = maxWaitQueueSize )); };
- is related to
-
CSHARP-1144 Investigate tests busting over the wait queue size
- Closed