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

If only one node in set go straight to PRIMARY status

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None

    Description

      Currently it goes to SECONDARY and takes a while before electing self even though there is no-one to contest the election.

      This is especially annoying when doing the following steps to bring up a new node:

      rs.initiate()
      rs.add(getHostName()+':10002')
      rs.add(getHostName()+':10003')

      I have to wait ~30 seconds before running the second line because the first and only node takes a long time to elect itself.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mathias@mongodb.com Mathias Stearn
            Votes:
            9 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: