diff options
author | Benety Goh <benety@mongodb.com> | 2018-07-19 19:24:59 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-07-20 15:34:59 -0400 |
commit | e3119769fc8130428c035a1d8bf68e67282e8e8a (patch) | |
tree | 962ff566fa8bf62339fad185d6125daee9f06cc6 | |
parent | 5c17751d900c7ebc6cdb4eefbd2e1797555baf43 (diff) | |
download | mongo-e3119769fc8130428c035a1d8bf68e67282e8e8a.tar.gz |
SERVER-34941 remove test logic to update min valid. this is not required as of 4.0
(cherry picked from commit 461184c1467fb6c130638b27bf1d71962c7e830b)
-rw-r--r-- | jstests/noPassthrough/recovery_wt_cache_full.js | 15 |
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}), |