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

Behavior of movePrimary unclear

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

      The documentation of movePrimary contains several cryptic warnings when it should or shouldn't be used, but doesn't actually explain what it does or doesn't do.

      http://docs.mongodb.org/manual/reference/command/movePrimary/

      What it actually does is move all unsharded collections from the old primary shard to the new primary shard, but it does so without any synchronization or other protection, and therefore the command cannot be used on a live system, since the results of reads and writes on the affected database would be undefined while the move is in progress. This needs to be explained clearly in the documentation, while some of the warnings (such as, "only use this when removing a shard") should be dropped.

            Assignee:
            andrew.aldridge@mongodb.com Andrew Aldridge
            Reporter:
            andre.spiegel@mongodb.com Andre Spiegel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 33 weeks, 5 days ago