summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2022-10-27 22:13:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-31 16:12:17 +0000
commitc05489817935b7dda5b2617a2bfa79540d19de90 (patch)
tree3cf5f7ad8ba3541e3d562fd682babf58cee190b5 /jstests/libs
parentd6606b87b8dd870d0c295b1213febe636c678b6f (diff)
downloadmongo-c05489817935b7dda5b2617a2bfa79540d19de90.tar.gz
SERVER-69160: Await replication in shards in shardingTest for FCV initialization
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/cluster_server_parameter_utils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/libs/cluster_server_parameter_utils.js b/jstests/libs/cluster_server_parameter_utils.js
index 746528545d7..89e22e079eb 100644
--- a/jstests/libs/cluster_server_parameter_utils.js
+++ b/jstests/libs/cluster_server_parameter_utils.js
@@ -141,6 +141,9 @@ function setupSharded(st) {
shards.forEach(function(shard) {
setupReplicaSet(shard);
});
+
+ // Wait for FCV to fully replicate on all shards before performing test commands.
+ st.awaitReplicationOnShards();
}
// Upserts config.clusterParameters document with w:majority via setClusterParameter.