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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.4
    • Component/s: Error Handling, Performance
    • None

      ... and specifying a non-zero MinConnectionPoolSize.

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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.

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

              Created:
              Updated:
              Resolved: