summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorRandolph Tan <randolph@mongodb.com>2020-01-27 23:07:44 +0000
committerevergreen <evergreen@mongodb.com>2020-01-27 23:07:44 +0000
commitea29d8568d1ce08684e6217ca3baf60a84378bc8 (patch)
treed954c1e4f076aa7b561da45ed02d70edc5442521 /jstests
parent1342a16cea8e4d5705846a9d59a1a0d67d360da3 (diff)
downloadmongo-ea29d8568d1ce08684e6217ca3baf60a84378bc8.tar.gz
SERVER-44103 clear_jumbo.js should wait for balancer to be on mode: full for more than one round
(cherry picked from commit 7e7a45333cbab5ded49543ee2b09611f77792a51)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/clear_jumbo.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/sharding/clear_jumbo.js b/jstests/sharding/clear_jumbo.js
index 39bdd79175d..9b14e68db44 100644
--- a/jstests/sharding/clear_jumbo.js
+++ b/jstests/sharding/clear_jumbo.js
@@ -84,9 +84,8 @@ let waitForBalancerToRun = function() {
st.startBalancer();
assert.soon(function() {
- let roundNumber =
- assert.commandWorked(st.s.adminCommand({balancerStatus: 1})).numBalancerRounds;
- return roundNumber > lastRoundNumber;
+ let res = assert.commandWorked(st.s.adminCommand({balancerStatus: 1}));
+ return res.mode == "full" && res.numBalancerRounds - lastRoundNumber > 1;
});
st.stopBalancer();