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

Make awaitReplication fail with NotMaster in ReplicationCoordinatorImpl

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.8
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL

    Description

      We need to preserve the legacy behavior, which is:
      1. check on entry if we are not primary; return NotMaster immediately
      2. upon stepdown, need to signal any blocked awaitReplication() callers, so that they can wake up and return NotMaster
      Note that we need to be careful to avoid any state-change races between 1 and 2.

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: