diff options
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js | 3 | ||||
-rw-r--r-- | jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js b/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js index 402f59cc124..f3417932965 100644 --- a/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js +++ b/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js @@ -67,7 +67,8 @@ var {withTxnAndAutoRetry} = (function() { if ((e.hasOwnProperty('errorLabels') && e.errorLabels.includes('TransientTransactionError')) || (retryOnKilledSession && - (e.code === ErrorCodes.Interrupted || e.code === ErrorCodes.CursorKilled))) { + (e.code === ErrorCodes.Interrupted || e.code === ErrorCodes.CursorKilled || + e.code == ErrorCodes.CursorNotFound))) { hasTransientError = true; continue; } diff --git a/jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js b/jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js index 042b00ae3c7..4c66bdbb6ce 100644 --- a/jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js +++ b/jstests/concurrency/fsm_workloads/multi_statement_transaction_kill_sessions_atomicity_isolation.js @@ -39,7 +39,8 @@ var $config = extendWorkload($config, ($config, $super) => { res = db.runCommand({killSessions: [{id: sessionUUID}]}); assertAlways.commandWorked(res); } catch (e) { - if (e.code == ErrorCodes.Interrupted || e.code == ErrorCodes.CursorKilled) { + if (e.code == ErrorCodes.Interrupted || e.code == ErrorCodes.CursorKilled || + e.code == ErrorCodes.CursorNotFound) { // This session was killed when running either listSessions or killSesssions. // We should retry. ourSessionWasKilled = true; |