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

    • Type: Icon: Sub-task Sub-task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              11 years, 7 weeks, 3 days ago