summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2022-02-02 06:14:45 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-02 11:41:39 +0000
commitc45f8885f8c2aa87a8498add9228969600600de0 (patch)
tree2aaf91df8336d236dc2f382362ea7edd87a25c98 /jstests/core
parentcb6654f0251852820a0c4af4901f31fe21597377 (diff)
downloadmongo-c45f8885f8c2aa87a8498add9228969600600de0.tar.gz
Revert "SERVER-62650 Limit cache wait time when initializing RecordIds"r5.3.0-alpha1
This reverts commit 6d509615d2d6ef7af38e1b982b6272a54e9b591c.
Diffstat (limited to 'jstests/core')
-rw-r--r--jstests/core/txns/commit_and_abort_large_unprepared_transactions.js27
1 files changed, 8 insertions, 19 deletions
diff --git a/jstests/core/txns/commit_and_abort_large_unprepared_transactions.js b/jstests/core/txns/commit_and_abort_large_unprepared_transactions.js
index aff44fe900d..feb09ef4656 100644
--- a/jstests/core/txns/commit_and_abort_large_unprepared_transactions.js
+++ b/jstests/core/txns/commit_and_abort_large_unprepared_transactions.js
@@ -27,25 +27,14 @@ const sessionDB = session.getDatabase(dbName);
const sessionColl = sessionDB.getCollection(collName);
// Test committing an unprepared large transaction with two 10MB inserts.
-try {
- let doc1 = createLargeDocument(1);
- let doc2 = createLargeDocument(2);
-
- session.startTransaction();
- assert.commandWorked(sessionColl.insert(doc1));
- assert.commandWorked(sessionColl.insert(doc2));
- assert.commandWorked(session.commitTransaction_forTesting());
- assert.sameMembers(sessionColl.find().toArray(), [doc1, doc2]);
-} catch (e) {
- // It may be possible for this test to run in a passthrough where such a large transaction fills
- // up the cache and cannot commit. The transaction will be rolled-back with a WriteConflict as a
- // result.
- if (e.code === ErrorCodes.WriteConflict && e.errmsg.startsWith("Cache full")) {
- jsTestLog("Ignoring WriteConflict due to large transaction's size");
- } else {
- throw e;
- }
-}
+let doc1 = createLargeDocument(1);
+let doc2 = createLargeDocument(2);
+session.startTransaction();
+assert.commandWorked(sessionColl.insert(doc1));
+assert.commandWorked(sessionColl.insert(doc2));
+
+assert.commandWorked(session.commitTransaction_forTesting());
+assert.sameMembers(sessionColl.find().toArray(), [doc1, doc2]);
// Test aborting an unprepared large transaction with two 10MB inserts.
let doc3 = createLargeDocument(3);