diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2023-01-09 10:49:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-09 11:23:37 +0000 |
commit | 6a050f19a63baf52f3feb3b7e6ff496b63068219 (patch) | |
tree | a964d42e4dd2352ee815598305a1e24552b7b6e1 /jstests/concurrency | |
parent | a5af803b678126c1ef5fb7a2a59414c9484cc21d (diff) | |
download | mongo-6a050f19a63baf52f3feb3b7e6ff496b63068219.tar.gz |
SERVER-72395 Make random_moveChunk_multi_update_delete_change_streams.js test create the 'operations' collection during the setup phase
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js b/jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js index 5778f947427..cc72d684522 100644 --- a/jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js +++ b/jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js @@ -267,6 +267,11 @@ var $config = extendWorkload($config, function($config, $super) { // Store an in-memory representation of the documents in the collection. this.expectedDocs = db[collName].find().toArray(); + + // Make sure the 'operations' collection is created before we start running the FSM states. + // This prevents failures in suites where states run in transactions, as creating a + // collection within a multi-shard transaction is not allowed. + db.createCollection("operations"); }; $config.teardown = function teardown(db, collName, cluster) { |