Invalid BinaryConnection state transition from 4 to Failed

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 2.7.1
    • Affects Version/s: 2.4.4
    • Component/s: Connectivity
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After upgrading to 2.4.4 it appears that the problem mentioned in CSHARP-1961 still persists.

      When the replicaset failover is triggered, the following exceptions happen:

      System.InvalidOperationException: Invalid BinaryConnection state transition from 4 to Failed.
      MongoDB.Driver.Core.Connections.BinaryConnection.OpenConnectionHelper.FailedOpeningConnection(Exception wrappedException)
      MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelper(CancellationToken cancellationToken)
      MongoDB.Driver.Core.Connections.BinaryConnection.Open(CancellationToken cancellationToken)
      MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquiredConnection.Open(CancellationToken cancellationToken)
      MongoDB.Driver.Core.Servers.Server.GetChannel(CancellationToken cancellationToken)
      MongoDB.Driver.Core.Bindings.ServerChannelSource.GetChannel(CancellationToken cancellationToken)
      MongoDB.Driver.Core.Bindings.ChannelSourceHandle.GetChannel(CancellationToken cancellationToken)
      MongoDB.Driver.Core.Operations.FindOperation`1.Execute(IReadBinding binding, CancellationToken cancellationToken)
      MongoDB.Driver.MongoCursor`1.GetEnumerator()
      

              Assignee:
              Robert Stam
              Reporter:
              Aristarkh Zagorodnikov
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: