diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2022-10-27 22:13:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-31 16:12:17 +0000 |
commit | c05489817935b7dda5b2617a2bfa79540d19de90 (patch) | |
tree | 3cf5f7ad8ba3541e3d562fd682babf58cee190b5 /jstests/libs | |
parent | d6606b87b8dd870d0c295b1213febe636c678b6f (diff) | |
download | mongo-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.js | 3 |
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. |