diff options
-rw-r--r-- | jstests/sharding/analyze_shard_key/refresh_sample_rates.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/sharding/analyze_shard_key/refresh_sample_rates.js b/jstests/sharding/analyze_shard_key/refresh_sample_rates.js index c63d7410bdb..c17bcb31d30 100644 --- a/jstests/sharding/analyze_shard_key/refresh_sample_rates.js +++ b/jstests/sharding/analyze_shard_key/refresh_sample_rates.js @@ -293,6 +293,11 @@ function runTest(createConnFn, rst, samplerNames) { st.configRS.isConfigSvr = true; const samplerNames = [st.s0.host, st.s1.host, st.s2.host]; + jsTest.log("Wait for the config server to be aware that there are 3 mongoses in the cluster"); + assert.soon(() => { + return st.s.getCollection("config.mongos").find().itcount() == 3; + }); + jsTest.log("Test that the _refreshQueryAnalyzerConfiguration command is not supported on " + "mongos or shardsvr mongod or configsvr secondary mongod"); const cmdObj = { |