Skip to content

Commit

Permalink
SERVER-26048 sharding_balance3.js should wait for balancer to ack set…
Browse files Browse the repository at this point in the history
…tings change
  • Loading branch information
renctan committed Sep 12, 2016
1 parent aa6918f commit fd3c6c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions jstests/sharding/shard6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ summary = "";

s = new ShardingTest({name: "shard6", shards: 2});

s.config.settings.update({_id: "balancer"}, {$set: {stopped: true}}, true);

s.adminCommand({enablesharding: "test"});
s.ensurePrimaryShard('test', 'shard0001');
s.adminCommand({shardcollection: "test.data", key: {num: 1}});
Expand Down
2 changes: 1 addition & 1 deletion jstests/sharding/sharding_balance3.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

print("* A");
print("disabling the balancer");
s.config.settings.update({_id: "balancer"}, {$set: {stopped: true}}, true);
s.stopBalancer();
s.config.settings.find().forEach(printjson);
print("* B");

Expand Down

0 comments on commit fd3c6c1

Please sign in to comment.