|
Repro seems to pass on master. Closing as gone away.
The revised repro to work on master is:
(function() {
|
s = new ShardingTest({name: "server11876", shards: 2, mongos: 1, other: {chunkSize: 1}});
|
s.stopBalancer();
|
|
assert.commandWorked(s.s.adminCommand( { enableSharding : "test" } ));
|
assert.commandWorked(s.s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } ));
|
|
assert.commandWorked(s.s.adminCommand( { movechunk : "test.foo" , find : { _id : 42 } , to : s.shard1.shardName } ));
|
sleep(2000);
|
|
assert.commandWorked(s.s.adminCommand( { movechunk : "test.foo" , find : { _id : 42 } , to : s.shard0.shardName } ));
|
sleep(2000);
|
|
// this fails in 2.4.8, 2.4.6, 2.2.6, 2.0.9
|
assert.commandWorked(s.splitAt('test.foo', {_id : 42}));
|
s.stop();
|
})();
|
|