[CSHARP-2029] High CPU utilization when specifying an unknown server in the connection string. Created: 10/Aug/17  Updated: 13/Jul/20  Resolved: 13/Jul/20

Status: Closed
Project: C# Driver
Component/s: Error Handling, Performance
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Anatoliy Koperin Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CSHARP-2861 Having incorrect credentials along wi... Closed

 Description   

... and specifying a non-zero MinConnectionPoolSize.

var connString = "mongodb://knownRemoteServer,unknownServer";
var settings = MongoClientSettings.FromUrl(MongoUrl.Create(connString));
settings.MinConnectionPoolSize = 1;
var client = new MongoClient(settings);

knownRemoteServer - any MongoDB server
unknownServer - unresolved hostname from DNS

Reason: maintenance interval not used while connection error.



 Comments   
Comment by Jeffrey Yemin [ 13/Jul/20 ]

Looks like this duplicates CSHARP-2861, which was fixed in the 2.10.1 release

Comment by Anatoliy Koperin [ 27/Oct/17 ]

Please consider this simple pull request.

I make requests from many virtual servers with 1 CPU core.
When at least one mongo-router stops resolving in the DNS, then all servers hang in a cycle in the driver code.

Comment by Anatoliy Koperin [ 10/Aug/17 ]

Pull request: https://github.com/mongodb/mongo-csharp-driver/pull/287

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