diff options
Diffstat (limited to 'jstests/libs/cluster_server_parameter_utils.js')
-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. |