[CSHARP-2862] The driver does not check if maxPoolSize is greater than minPoolSize Created: 26/Nov/19  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.8.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Dmitry Ryabtsev Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I've noticed that the driver does not mind if maxPoolSize gets set to a value lesser than minPoolSize:

static String uri = "mongodb://adminx:123@mubuntu:27017/test?authSource=admin&minPoolSize=1000&maxPoolSize=10";

I believe that the behaviour in such a configuration is undefined.

For comparison, the Java driver throws if the same connection string is used (which I believe is the correct behaviour):

java.lang.IllegalStateException: state should be: maxSize >= minSize


Generated at Wed Feb 07 21:43:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.