mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-41861 Change existing jstests to mention the new 'all_durable' timestamp over the deprecated 'all_committed' timestamp
This commit is contained in:
parent
25d5f6a0b0
commit
e6b6a2231a
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* This tests that writes with majority write concern will wait for at least the all committed
|
||||
* This tests that writes with majority write concern will wait for at least the all durable
|
||||
* timestamp to reach the timestamp of the write. This guarantees that once a write is majority
|
||||
* committed, reading at the all committed timestamp will read that write.
|
||||
* committed, reading at the all durable timestamp will read that write.
|
||||
*
|
||||
* @tags: [requires_document_locking]
|
||||
*/
|
||||
@ -16,13 +16,13 @@
|
||||
assert(result.getWriteConcernError().errInfo.wtimeout, tojson(result));
|
||||
}
|
||||
|
||||
const rst = new ReplSetTest({name: "writes_wait_for_all_committed", nodes: 1});
|
||||
const rst = new ReplSetTest({name: "writes_wait_for_all_durable", nodes: 1});
|
||||
rst.startSet();
|
||||
rst.initiate();
|
||||
|
||||
const primary = rst.getPrimary();
|
||||
const dbName = "test";
|
||||
const collName = "majority_writes_wait_for_all_committed";
|
||||
const collName = "majority_writes_wait_for_all_durable";
|
||||
const testDB = primary.getDB(dbName);
|
||||
const testColl = testDB[collName];
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
}));
|
||||
|
||||
jsTestLog(
|
||||
"Insert a document to hang before the insert completes to hold back the all committed timestamp.");
|
||||
"Insert a document to hang before the insert completes to hold back the all durable timestamp.");
|
||||
const joinHungWrite = startParallelShell(() => {
|
||||
assert.commandWorked(
|
||||
db.getSiblingDB(TestData.dbName)[TestData.collName].insert({_id: "b"}));
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Tests that single voting primaries can commit majority writes when they storage-commit out of
|
||||
* order. This test first inserts a document to set the last applied optime, all committed
|
||||
* order. This test first inserts a document to set the last applied optime, all_durable
|
||||
* timestamp, and stable timestamp. It then spawns 'n' threads and holds them behind a barrier. Once
|
||||
* the threads are all waiting at the barrier, the threads all do a w:majority insert. We turn on a
|
||||
* fail point that will block the first thread to receive an optime from the optime generator for a
|
||||
|
Loading…
Reference in New Issue
Block a user