The retryable reads and writes logic in MongoClient is split into two methods with a fair amount of duplication. We should refactor these together to avoid the duplication: https://github.com/mongodb/mongo-python-driver/blob/0092b0af79378abf35b6db73a082ecb91af1d973/pymongo/mongo_client.py#L1362-L1487
- backports
-
PYTHON-3910 mongo-python-driver - PR #1344: PYTHON-3739 Refactor retryable reads and writes logic to avoid duplication
- Closed
- causes
-
PYTHON-4038 Make explicit OperationFailure check on retryable read error handling
- Closed
- is duplicated by
-
PYTHON-3910 mongo-python-driver - PR #1344: PYTHON-3739 Refactor retryable reads and writes logic to avoid duplication
- Closed