Running the small snippet below results in:
assert failed : Cmd failed: {
|
"code" : 13503,
|
"ok" : 0,
|
"errmsg" : "exception: splitVector command (median key) failed: { ok: 0.0, errmsg: \"need to specify the desired max chunk size (maxChunkSize or maxChunkSizeBytes)\" }"
|
}
|
var st = new ShardingTest({ shards: 2, chunkSize: 1 });
|
st.stopBalancer();
|
|
var testDB = st.s.getDB('test');
|
testDB.adminCommand({ enableSharding: 'test' });
|
testDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});
|
|
var cmdRes = testDB.adminCommand({ split: 'test.user', find: { x: 987745 }});
|
assert(cmdRes.ok, 'Cmd failed: ' + tojson(cmdRes));
|
|
st.stop();
|