Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3562

moveprimary moves all databases, including sharded collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, 1.9.2
    • Fix Version/s: 2.1.1
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Issuing a movePrimary command should only move unsharded collections, sharded collections are required to be drained first.

      Potentially also affects new versions.

      Can reproduce easily in a sharded setup, shard a collection, then issue movePrimary to another shard. The first shard will be empty, the second shard will have the data, and the chunks collection will not be updated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              greg_10gen Greg Studer
              Reporter:
              greg_10gen Greg Studer
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: