[SERVER-59884] auto_retry_transaction.js does not retry during commit Created: 10/Sep/21  Updated: 29/Nov/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-60495 Retry FailedToSatisfyReadPreference i... Closed
Operating System: ALL
Participants:
Linked BF Score: 118

 Description   

on certain types of error. It currently retries on interrupt type errors:

https://github.com/mongodb/mongo/blob/a144ad58c9781602e99941fe627eceed8e7bc8bb/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js#L71

and gives up when error doesn't have the transient transaction error label:

https://github.com/mongodb/mongo/blob/a144ad58c9781602e99941fe627eceed8e7bc8bb/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js#L41

The code comment appears to contradict with the specs:

Any network error encountered running any command other than commitTransaction in a transaction. If a network error occurs while running the commitTransaction command then it is not known whether the transaction committed or not, and thus the "TransientTransactionError" label MUST NOT be added.


Generated at Thu Feb 08 05:48:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.