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

Behavior of movePrimary unclear

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.11
    • None
    • manual
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

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