-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
*Location*: http://docs.mongodb.org/manual/reference/command/split/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: reference/command/split
*Location*: http://docs.mongodb.org/manual/reference/command/split/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1440 x 900 *repo*: docs *source*: reference/command/split
The example for doing a split for a hashed shard key is wrong. It shows this:
db.runCommand(
{ split: "test.people" , bounds : [ NumberLong("-5838464104018346494"), NumberLong("-5557153028469814163")] })
This command gives an error. The correct syntax as given in the blog is:
db.runCommand({ split : "mydb.webcrawler_empty", bounds : [
{ "url" : NumberLong("2305843009213693950") },
{ "url" : NumberLong("4611686018427387900") }] })
This syntax works.
Thanks for your work on Mongo and thanks for the great documentation!
- duplicates
-
DOCS-1844 split chunk docs have incorrect syntax for hashed shard keys
- Closed