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

Explicitly call out that moveChunk with 'find' should _not_ be used with hashed shard keys

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.15
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      There are two variants to the 'moveChunk' command, one using 'find' and the other using 'bounds'. On http://docs.mongodb.org/manual/reference/command/moveChunk/ we state that the bounds variant should be used for hashed shard keys. We don't say anything similar for the find variant. We should either:

      • state that this form should not be used for hashed shard keys (balancing the statement in the bounds variant), or (optionally / additionally)
      • state that the document supplied to the find in the case of a hashed shard key should use the hashed value of the shard key, not the raw value of the shard key (problem is that to get the hash you need to use the internal _hasBSONElement command)

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            ronan.bohan@mongodb.com Ronan Bohan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 21 weeks, 1 day ago