Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-990 Document bounds parameter of moveChunk
  3. DOCS-1221

moveChunk find parameter needs additional usage info

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.2
    • None
    • None
    • true

    Description

      The "find" parameter in the moveChunk command is misleading, as it sounds like any regular find query could be used here to specify a chunk. This is not the case and needs to be stated more clearly.

      In particular, the find parameter must include the shard key as an equality match, it is not possible to include any comparison operators like $gt or $lt.

      Doing this will not result in an error, but instead in a different chunk to be moved, as the value will be treated as a document type which compares higher than any numbers or strings.

      Attachments

        Activity

          People

            epc Ed Costello
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 39 weeks ago