summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishnu Kaushik <vishnu.kaushik@mongodb.com>2021-08-03 15:12:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-11 02:06:17 +0000
commitbee0acbe03a290cee889002c3604bb493c332813 (patch)
tree6f29da31a63d125c4c1f38ed9cd8921170c336d9
parentfa9cc42b69c50c4ea6bf43294ca25a668856fe95 (diff)
downloadmongo-bee0acbe03a290cee889002c3604bb493c332813.tar.gz
SERVER-58984 wait for configuration to be installed before proceeding in awaitable_hello_fcv_change.js
-rw-r--r--jstests/replsets/awaitable_hello_fcv_change.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/replsets/awaitable_hello_fcv_change.js b/jstests/replsets/awaitable_hello_fcv_change.js
index 3af3922b754..cf5b31baf57 100644
--- a/jstests/replsets/awaitable_hello_fcv_change.js
+++ b/jstests/replsets/awaitable_hello_fcv_change.js
@@ -175,6 +175,9 @@ function runTest(downgradeFCV) {
rst.awaitReplication();
checkFCV(primaryAdminDB, downgradeFCV);
checkFCV(secondaryAdminDB, downgradeFCV);
+ // The new configuration may not have been installed on the secondary yet, though it has reached
+ // the secondary.
+ rst.waitForConfigReplication(primary);
// All hello requests should have been responded to after the FCV change.
numAwaitingTopologyChangeOnPrimary =
@@ -260,6 +263,9 @@ function runTest(downgradeFCV) {
rst.awaitReplication();
checkFCV(primaryAdminDB, lastLTSFCV);
checkFCV(secondaryAdminDB, lastLTSFCV);
+ // The new configuration may not have been installed on the secondary yet, though it has
+ // reached the secondary.
+ rst.waitForConfigReplication(primary);
primaryResponseAfterDowngrade = helloAsInternalClient();
assert(primaryResponseAfterDowngrade.hasOwnProperty("topologyVersion"),