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

Upgrading from Mongo Legacy 1.11.0 to 2.4.0 (or 2.3.0) connection Timeout Issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Connectivity
    • Labels:
      None
    • Environment:
      Mongo Server Version 3.2.9
      Mongo C# Driver Version 2.3.0 and 2.4.0

      Description

      After upgrading from 1.11.0 to 2.4.0 or 2.3.0 C# legacy driver, we have connection issues being reported at random. The main modified code was dealing with how to connect to mongo. We changed it from:

      db = new MongoClient(url).GetServer().GetDatabase(url.DatabaseName, settings);

      to this:

      db = new MongoServer(serverSettings).GetDatabase(url.DatabaseName, settings);

      Any advice would be appreciated.

      {"Type":"System.TimeoutException","Message":"A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = WritableServerSelector, LatencyLimitingServerSelector

      { AllowedLatencyRange = 00:00:00.0150000 }

      }. Client view of cluster state is { ClusterId : \"2\", ConnectionMode : \"ReplicaSet\", Type : \"ReplicaSet\", State : \"Disconnected\", Servers : [{ ServerId: \"

      { ClusterId : 2, EndPoint : \"Unspecified/aga-rogue-mongo01.aga-dev.sandbox.farm:27017\" }

      \", EndPoint: \"Unspecified/aga-rogue-mongo01.aga-dev.sandbox.farm:27017\", State: \"Disconnected\", Type: \"Unknown\" }, { ServerId: \"

      { ClusterId : 2, EndPoint : \"Unspecified/aga-rogue-mongo02.aga-dev.sandbox.farm:27017\" }

      \", EndPoint: \"Unspecified/aga-rogue-mongo02.aga-dev.sandbox.farm:27017\", State: \"Disconnected\", Type: \"Unknown\" }] }.","Source":"MongoDB.Driver.Core","Data":{},"StackTrace":" at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask)\r\n at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken)\r\n at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken)\r\n at MongoDB.Driver.Core.Bindings.WritableServerBinding.GetReadChannelSource(CancellationToken cancellationToken)\r\n at MongoDB.Driver.Core.Operations.FindOperation`1.Execute(IReadBinding binding, CancellationToken cancellationToken)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstam Robert Stam
              Reporter:
              kuhnboy Ryan Kuhn
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: