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

moveprimary moves all databases, including sharded collections

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: 1.8.2, 1.9.2
    • Component/s: Sharding
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: