Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
2.5
-
None
Description
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.
Attachments
Issue Links
- is depended on by
-
DRIVERS-467 More errors must should be considered retryable
-
- Closed
-