Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1844

split chunk docs have incorrect syntax for hashed shard keys

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The docs for split on
      http://docs.mongodb.org/manual/reference/command/split/#split-a-chunk-using-values-of-a-hashed-shard-key

      seem incorrect. the contents of the "bounds" array should be documents that contain the key & value of the shard key, not just the value. The example provided should be something like :

      db.runCommand( { split: "test.people" ,
                     bounds : [ { _id: NumberLong("-5838464104018346494") },
                                { _id: NumberLong("-5557153028469814163") }] } )
      

            Assignee:
            zack.brown@10gen.com Zack Brown
            Reporter:
            jsr Jared Rosoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 37 weeks, 2 days ago