-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- is depended on by
-
DRIVERS-467 More errors must should be considered retryable
- Closed