If only one node in set go straight to PRIMARY status

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Mathias Stearn
            Votes:
            9 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: