Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2029

High CPU utilization when specifying an unknown server in the connection string.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.4
    • Error Handling, Performance
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ExM Anatoliy Koperin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: