-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Minor Change
As a temporary solution to https://jira.mongodb.org/browse/MONGOID-4785, the driver should retry reads when it receives a "node shutting down" type error and legacy read retries are used.
In general, the driver retries in legacy mode on network errors but not on operation failure errors (except in sharded clusters where op failures are also retried). However, retries on op failures are safer since the server returned an error and thus operation was not performed, whereas for network errors in legacy mode the driver has no way of knowing whether the operation was executed. Therefore all op failure errors that modern retry logic retries on should also be retried in legacy mode.
These retries are already done in sharded topologies - the change is to enable them in all topologies.
- is related to
-
MONGOID-4785 Mongoid forces legacy read retries regardless of driver configuration
- Closed
- links to