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

replsettest getPrimary() should only return when there is exactly one node in the primary state

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.9
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 16 (06/24/16)
    • 0

      Currently if two nodes think that they are Primary, whichever getPrimary() calls isMaster on last will be returned. calls to getPrimary() are often followed by writes to the primary which will fail if that primary steps down soon after being returned.

            Assignee:
            judah.schvimer@mongodb.com Judah Schvimer
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: