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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.9
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Repl 16 (06/24/16)
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: