diff options
author | Matt Kneiser <matt.kneiser@mongodb.com> | 2023-05-10 17:01:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-10 18:46:11 +0000 |
commit | ec56eeaf417ff42b2689f772fc9dec4193da10ff (patch) | |
tree | db93508290f84c06f12e93a7757534830ae1dcb0 /jstests/concurrency | |
parent | a56988182b4d976f017628f29a2a25e19023be55 (diff) | |
download | mongo-ec56eeaf417ff42b2689f772fc9dec4193da10ff.tar.gz |
SERVER-76928 Account for long-running dbhash test
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/dbhash_test.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/jstests/concurrency/fsm_workloads/dbhash_test.js b/jstests/concurrency/fsm_workloads/dbhash_test.js index f2ddd3670e4..71856604791 100644 --- a/jstests/concurrency/fsm_workloads/dbhash_test.js +++ b/jstests/concurrency/fsm_workloads/dbhash_test.js @@ -21,11 +21,15 @@ var $config = (function() { }, dbHash: function(db, collName) { jsTestLog("dbHash: " + db + "." + collName + " tid: " + this.tid); - jsTestLog("dbHash begin opTime:" + tojson(this.opTime)); - let dbHashRes = assert.commandWorked(db.collName.runCommand({ - dbHash: 1, - $_internalReadAtClusterTime: Timestamp(this.opTime['t'], this.opTime['i']) - })); + let opTime = + assert + .commandWorked(db.runCommand( + {insert: collName, documents: [{x: 1}], writeConcern: {w: "majority"}})) + .operationTime; + jsTestLog("dbHash opTime:" + tojson(opTime)); + jsTestLog("dbHash begin opTime:" + tojson(opTime)); + let dbHashRes = assert.commandWorked(db.collName.runCommand( + {dbHash: 1, $_internalReadAtClusterTime: Timestamp(opTime['t'], opTime['i'])})); jsTestLog("dbHash done" + dbHashRes.timeMillis); }, fullValidation: function(db, collName) { @@ -51,13 +55,6 @@ var $config = (function() { } assertAlways.commandWorked(bulk.execute()); - this.opTime = - assert - .commandWorked(db.runCommand( - {insert: collName, documents: [{x: 1}], writeConcern: {w: "majority"}})) - .operationTime; - jsTestLog("dbHash opTime:" + tojson(this.opTime)); - // Avoid filling the cache by flushing on a shorter interval setSyncDelay(db, 10); |