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

mongorestore from a secondary breaks replication

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.4
    • Component/s: Replication, Tools
    • Labels:
      None
    • Environment:
      Windows
    • ALL

      This happened in an admin training class.

      After the backup section, student used mongodump to create a backup of a secondary (from a replica set we had previously set up on everyone's laptops; for data, imagine importing the training data set and making a few changes to it).

      Then, the student used mongorestore --drop to restore the dump onto their primary. At this point, their secondaries went into RECOVERING state, and never came back. Their last optimes (via rs.status()) were shown to be about the time the restore was performed.

            Assignee:
            gregor Gregor Macadam
            Reporter:
            cwestin Chris Westin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: