Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Won't Fix
-
None
-
None
-
ALL
-
Sharding 2019-12-30, Sharding 2020-01-13, Sharding 2020-01-27
Description
db.adminCommand({ enableSharding: 'test' });
|
db.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});
|
db.adminCommand({ split: 'test.user', middle: { x: 0 }})
|
db.adminCommand({ split: 'test.user', middle: { x: 100 }})
|
db.user.insert({ x: 1 })
|
db.adminCommand({ split: 'test.user', find: { x: 1 }})
|
returns:
{ "cause" : { }, "ok" : 0, "errmsg" : "split failed" }
|
Note: if the collection was not presplit, the split command will run fine because of special case handling on chunks with MinKey or MaxKey as boundaries.