diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-05-03 17:57:15 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-05-04 10:46:27 -0400 |
commit | e90af3fa7b1fcc56a7f215173806d2bc441e7e90 (patch) | |
tree | 98e74bc1da5a28434526f4b472723e74474a30fd | |
parent | 43a6a8a3e61ebb03f7b43bc587c01fe01830a6d9 (diff) | |
download | mongo-e90af3fa7b1fcc56a7f215173806d2bc441e7e90.tar.gz |
SERVER-34834 Wait for replication of FCV document before downgrading binaries in clear_and_reinstate_keys_rs.js
-rw-r--r-- | jstests/multiVersion/clear_and_reinstate_keys_rs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/multiVersion/clear_and_reinstate_keys_rs.js b/jstests/multiVersion/clear_and_reinstate_keys_rs.js index 097efd6a5d7..3af5041cf66 100644 --- a/jstests/multiVersion/clear_and_reinstate_keys_rs.js +++ b/jstests/multiVersion/clear_and_reinstate_keys_rs.js @@ -27,6 +27,9 @@ // The system keys collection should have been dropped. assertHasNoKeys(rst.getPrimary()); + // Wait for the FCV document to replicate to all secondaries before downgrading them. + rst.awaitReplication(); + jsTestLog("Downgrading binaries."); rst.upgradeSecondaries(rst.getPrimary(), {binVersion: lastStableVersion}); rst.upgradePrimary(rst.getPrimary(), {binVersion: lastStableVersion}); |