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

Make awaitReplication fail with NotMaster in ReplicationCoordinatorImpl

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: