summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/recovery_wt_cache_full.js
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-07-19 19:24:59 -0400
committerBenety Goh <benety@mongodb.com>2018-07-19 19:24:59 -0400
commit461184c1467fb6c130638b27bf1d71962c7e830b (patch)
tree3e71273c79d740158ebc9bf2d1828d6f1df1090d /jstests/noPassthrough/recovery_wt_cache_full.js
parent6b0147211e26239fb15e06fa5555bd3f701d8669 (diff)
downloadmongo-461184c1467fb6c130638b27bf1d71962c7e830b.tar.gz
SERVER-34941 remove test logic to update min valid. this is not required as of 4.0
Diffstat (limited to 'jstests/noPassthrough/recovery_wt_cache_full.js')
-rw-r--r--jstests/noPassthrough/recovery_wt_cache_full.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/noPassthrough/recovery_wt_cache_full.js b/jstests/noPassthrough/recovery_wt_cache_full.js
index 90f92fc5c24..29b980e12c9 100644
--- a/jstests/noPassthrough/recovery_wt_cache_full.js
+++ b/jstests/noPassthrough/recovery_wt_cache_full.js
@@ -58,14 +58,6 @@
assert.commandWorked(
secondary.adminCommand({configureFailPoint: 'disableSnapshotting', mode: 'alwaysOn'}));
- // (3.6 only) To make the secondary replay the update operations during startup recovery, we
- // restore the pre-update state of the minvalid document before restarting the secondary.
- // As of 4.0, it is not necessary to replace the minvalid to replay oplog entries during
- // startup; it is sufficient for the purposes of this test to disable snapshotting.
- const minValidColl = secondary.getCollection('local.replset.minvalid');
- const minValidDocBeforeUpdate = minValidColl.findOne();
- jsTestLog('Minvalid document before updates: ' + tojson(minValidDocBeforeUpdate));
-
const numUpdates = 1000;
jsTestLog('Writing ' + numUpdates + ' updates to ' + numDocs +
' documents on secondary after disabling snapshots.');
@@ -79,13 +71,6 @@
' to be written to the oplog.');
rst.awaitReplication();
- // Overwrite the minvalid document with its pre-update values before restarting the secondary.
- const minValidDocAfterUpdate = minValidColl.findOne();
- jsTestLog('Minvalid document after updates: ' + tojson(minValidDocAfterUpdate));
- assert.writeOK(minValidColl.remove({}));
- assert.writeOK(minValidColl.save(minValidDocBeforeUpdate));
- jsTestLog('Minvalid document after replacement: ' + tojson(minValidColl.findOne()));
-
secondary = rst.restart(1, {
setParameter: {
logComponentVerbosity: tojsononeline({replication: 2}),