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

split chunk docs have incorrect syntax for hashed shard keys

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None
    • None

    Description

      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") }] } )

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 24 weeks, 1 day ago