Details
-
Task
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
Server Tooling & Methods
-
v4.0
-
5
Description
The mongo shell currently bases its decision on whether it should retry a command or not on the command request having a "txnNumber" argument. Since the "find" and "getMore" command requests inside of a read-only or read/write transaction will also contain a "txnNumber" argument, we'll need to set a more explicit state on the mongo shell's session to indicate that the request it is about to perform should be retried.
let numRetries =
|
(cmdObj.hasOwnProperty("txnNumber") && !jsTest.options().skipRetryOnNetworkError) |
? 1
|
: 0;
|
Attachments
Issue Links
- has to be done after
-
SERVER-33218 Implement shell API for transactions
-
- Closed
-
- is related to
-
SERVER-33789 Retryable writes shell machinery also retries reads
-
- Closed
-