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

Removing a node from a replica set can't succeed when one node is syncing

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • FreeBSD
    • Hide

      Have a working replica set.
      Add a new node.
      Before the new node syncs (goes past STARTUP2) rs.remove() any node of the working replica set nodes.

      Show
      Have a working replica set. Add a new node. Before the new node syncs (goes past STARTUP2) rs.remove() any node of the working replica set nodes.

    Description

      Given I have a replica set with a number of nodes (>3) and one of them is syncing (in STARTUP2). As soon as I remove a node (be it SECONDARY or the PRIMARY) there will be a PRIMARY reelection, which appears to wait for the one node to finish the startup (in fact this node wants to become a primary). This however is never going to succeed, because no primary will be elected.

      Maybe rs.remove() should give an error in such a case.

      Attachments

        Activity

          People

            matt.dannenberg Matt Dannenberg
            reezer Christian Sturm
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: