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

moveprimary moves all databases, including sharded collections

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.1
    • 1.8.2, 1.9.2
    • Sharding
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: