-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
v5.3, v5.2, v5.0
-
25
-
3
Some test suite configurations use withTxnAndAutoRetry() to automatically retry running a JavaScript function within a multi-statement transaction until it succeeds. However, the commitTransaction command may fail with a FailedToSatisfyReadPreference if there isn't a primary on the coordinator shard for kDefaultFindHostTimeout (15 seconds). This leads shouldRetryEntireTxnOnError() to end up failing with an uncaught JavaScript exception.
We can probably add another case like this one in shouldRetryWithNetworkErrorOverride() to retry the commitTransaction on a FailedToSatisfyReadPreference error response.
- causes
-
SERVER-65633 withTxnAndAutoRetry() retries entire transaction when commitTransaction fails with FailedToSatisfyReadPreference
- Closed
- is related to
-
SERVER-60706 Retry FailedToSatisfyReadPreference errors while performing retryable writes
- Backlog