diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads/random_moveChunk_multi_update_delete_change_streams.js')
-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) { |