diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-05-11 14:03:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-11 15:25:26 +0000 |
commit | 08362ea0dc60bb3c6420f8573cebfb56cadc546b (patch) | |
tree | b1eaf8983c449454423bf91210504f539e821d77 | |
parent | d982d52961ce24c7408198e8201307389e6e7863 (diff) | |
download | mongo-08362ea0dc60bb3c6420f8573cebfb56cadc546b.tar.gz |
SERVER-66375 Retry all operations on killed session errors in random_moveChunk_update_shard_key_kill_sessions.js
(cherry picked from commit 4201be5dc451353a6f8ea1f373fd34c752b48739)
-rw-r--r-- | jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js index d4c324f8d95..1f258d7614d 100644 --- a/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js +++ b/jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key_kill_sessions.js @@ -16,6 +16,11 @@ load('jstests/concurrency/fsm_workload_helpers/kill_session.js'); // for killSe load('jstests/concurrency/fsm_workloads/random_moveChunk_update_shard_key.js'); load('jstests/libs/override_methods/retry_on_killed_session.js'); +// By default retry_on_killed_session.js will only retry known retryable operations like reads and +// retryable writes, but the moveChunks in this test may be interrupted and are safe to retry so opt +// into always retrying killed operations. +TestData.alwaysRetryOnKillSessionErrors = true; + var $config = extendWorkload($config, function($config, $super) { $config.data.retryOnKilledSession = true; |