diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2020-08-24 01:55:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-10 22:26:54 +0000 |
commit | 521e05db88e1e1c89dfd8313500322bb90828a35 (patch) | |
tree | 035709a319ca09b3571d2d4faa4c86eadf69b017 /jstests | |
parent | cc105d1dcb60440945e3ad32ab525402cfc674fe (diff) | |
download | mongo-521e05db88e1e1c89dfd8313500322bb90828a35.tar.gz |
SERVER-50327 Add namespace param to failpoint in new_transaction_waits_for_previous_txn_table_updates.js
(cherry picked from commit 5633aae06dbb46d2b98af36a9e6b79a46fc37ec2)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/txns/new_transaction_waits_for_previous_txn_table_updates.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/core/txns/new_transaction_waits_for_previous_txn_table_updates.js b/jstests/core/txns/new_transaction_waits_for_previous_txn_table_updates.js index b938d77e535..9558decc659 100644 --- a/jstests/core/txns/new_transaction_waits_for_previous_txn_table_updates.js +++ b/jstests/core/txns/new_transaction_waits_for_previous_txn_table_updates.js @@ -76,8 +76,11 @@ function runConcurrentTransactionOnSession(dbName, collName, lsid) { function runConcurrentCollectionCreate(dbName, collName) { // Turn on failpoint that the createCollection will hit after reserving an oplog slot. + // Make sure we specify the collection we are testing on to avoid triggering the failpoint + // on unrelated createCollection commands that happen to run concurrently. + const fpData = {nss: dbName + "." + collName}; const hangCreateFailPoint = - configureFailPoint(db, "hangAndFailAfterCreateCollectionReservesOpTime"); + configureFailPoint(db, "hangAndFailAfterCreateCollectionReservesOpTime", fpData); function runCollCreate(dbName, collName) { assert.commandFailedWithCode(db.getSiblingDB(dbName).createCollection(collName), 51267); |