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

MongoConnectionPoolPausedException should be resumable for change stream

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: Read Operations
    • Labels:
      None

      From a recent test, this stack trace has been observed:

      Unhandled exception. MongoDB.Driver.MongoConnectionPoolPausedException: The connection pool is in paused state for server autodispo1-shard-00-01-pri.fmh6e.mongodb.net:27016.
       at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.PoolState.ThrowIfNotReady()
       at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquireConnectionHelper.StartCheckingOut()
       at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquireConnectionHelper.AcquireConnection(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquireConnection(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Servers.Server.GetChannel(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Bindings.ServerChannelSource.GetChannel(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Bindings.ChannelSourceHandle.GetChannel(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Operations.AsyncCursor`1.GetNextBatch(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Operations.AsyncCursor`1.MoveNext(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Operations.ChangeStreamCursor`1.MoveNext(CancellationToken cancellationToken)
       at MongoDB.Driver.Core.Operations.AsyncCursorEnumerator`1.MoveNext()
       at MongoTest.Program.Main(String[] args) in /RiderProjects/MongoTest/MongoTest/Program.cs:line 148
      

      This exception should be resumable in addition to being retryable.

      Note that in scope of JAVA-4289 we decided to make all MongoClientException resumable. We should consider the same for C#.

            Assignee:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: