diff options
Diffstat (limited to 'jstests/sharding/enforce_zone_policy.js')
-rw-r--r-- | jstests/sharding/enforce_zone_policy.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/enforce_zone_policy.js b/jstests/sharding/enforce_zone_policy.js index f21c313bbd4..2ded590cb09 100644 --- a/jstests/sharding/enforce_zone_policy.js +++ b/jstests/sharding/enforce_zone_policy.js @@ -96,7 +96,8 @@ st.addTagRange(ns, {_id: MinKey}, {_id: MaxKey}, 'a'); assertBalanceCompleteAndStable(function() { var counts = st.chunkCounts(collName); printjson(counts); - return counts[st.shard0.shardName] == 11 && counts[st.shard1.shardName] == 0 && + // All chunks must have been moved to shard 0, none left on shard 1 and 2 + return counts[st.shard0.shardName] > 0 && counts[st.shard1.shardName] == 0 && counts[st.shard2.shardName] == 0; }, 'all chunks to zone a'); |