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

Retryable writes should consider more errors retryable

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.1
    • Affects Version/s: 2.5
    • Component/s: Operations
    • None

      Retryable writes currently consider only the following exceptions to be retryable:

      MongoConnectionException
      MongoNotPrimaryException
      MongoNodeIsRecoveringException
      

      The following MongoCommandException error codes should be considered retryable also:

      InterruptedAtShutdown
      InterruptedDueToReplStateChange
      NotMaster
      NotMasterNoSlaveOk
      NotMasterOrSecondary
      PrimarySteppedDown
      ShutdownInProgress
      WriteConcernFailed
      HostNotFound
      HostUnreachable
      NetworkTimeout
      SocketException
      

      The numeric values for those error codes can be found here:

      https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err

      ChangeStreamCursors should also automatically resume the change stream when any of the above error codes are encountered.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: