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

Invalid BinaryConnection state transition from 4 to Failed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.1
    • Affects Version/s: 2.4.4
    • Component/s: Connectivity
    • 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@mongodb.com Robert Stam
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: