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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.3.9
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 16 (06/24/16)
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: