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

Application gets stuck with no mongo servers connecting until app pool is reset.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.3
    • Component/s: Connectivity
    • Labels:
      None
    • Environment:
      iis 8, .net 4.5

      a webserver will sometimes get stuck with the following error until the app pool is reset, connectivity to the mongo servers appear fine. what is the problem ? it sounds like the heartbeat stops working.

      w3wp.exe Error: 0 : System.TimeoutException: 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/paspirehdb01:27017" }

      ", EndPoint: "Unspecified/paspirehdb01:27017", State: "Disconnected", Type: "Unknown" }, { ServerId: "

      { ClusterId : 2, EndPoint : "Unspecified/paspirehdb02:27017" }

      ", EndPoint: "Unspecified/paspirehdb02:27017", State: "Disconnected", Type: "Unknown" }] }.
      at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChangedHelper.HandleCompletedTask(Task completedTask)
      at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged(IServerSelector selector, ClusterDescription description, Task descriptionChangedTask, TimeSpan timeout, CancellationToken cancellationToken)
      at MongoDB.Driver.Core.Clusters.Cluster.SelectServer(IServerSelector selector, CancellationToken cancellationToken)
      at MongoDB.Driver.Core.Bindings.WritableServerBinding.GetWriteChannelSource(CancellationToken cancellationToken)
      at MongoDB.Driver.Core.Operations.CreateIndexesOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken)
      at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation[TResult](IWriteOperation`1 operation, CancellationToken cancellationToken)
      at MongoDB.Driver.MongoCollectionImpl`1.MongoIndexManager.CreateMany(IEnumerable`1 models, CancellationToken cancellationToken)
      at MongoDB.Driver.MongoIndexManagerBase`1.CreateOne(IndexKeysDefinition`1 keys, CreateIndexOptions options, CancellationToken cancellationToken)

            Assignee:
            Unassigned Unassigned
            Reporter:
            quethrosar aaron nighelli
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: