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

MongoConnectionPoolPausedException should be resumable for change stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.14.0
    • Read Operations
    • None

    Description

      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#.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: