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

Docs for SERVER-17710: Do not automatically wipe existing data before initial sync

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      Engineering Ticket Description:

      When running rs.initiate(), if any nodes other than the initiator node have data (but not an oplog), an error results:

      "errmsg" : "couldn't initiate : member <node> has data already, cannot initiate set.  All members except initiator must be empty."
      

      If you later use rs.add() to a node that has data (but not an oplog), then it will cause that node to initial sync and throw no errors.

      If you can rs.add() a node with data in it, it follows that you should be able to have a configuration object for rs.initiate() that contains a node with data in it (and both should cause an initial sync of that node).

      Attachments

        Activity

          People

            Unassigned Unassigned
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 3 weeks, 4 days ago