diff options
Diffstat (limited to 'jstests/replsets')
-rw-r--r-- | jstests/replsets/rollback_transaction_table.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/replsets/rollback_transaction_table.js b/jstests/replsets/rollback_transaction_table.js index e18a209eedb..9e0ca77a6d4 100644 --- a/jstests/replsets/rollback_transaction_table.js +++ b/jstests/replsets/rollback_transaction_table.js @@ -65,6 +65,13 @@ jsTestLog("Making sure 'downstream node' is the primary node."); assert.eq(downstream, replTest.getPrimary()); + // Renaming or dropping the transactions collection shouldn't crash if command is not rolled + // back. + assert.commandWorked(downstream.getDB("config").transactions.renameCollection("foo")); + assert.commandWorked(downstream.getDB("config").foo.renameCollection("transactions")); + assert(downstream.getDB("config").transactions.drop()); + assert.commandWorked(downstream.getDB("config").createCollection("transactions")); + jsTestLog("Running a transaction on the 'downstream node' and waiting for it to replicate."); let firstLsid = {id: UUID()}; let firstCmd = { |