Make awaitReplication fail with NotMaster in ReplicationCoordinatorImpl

XMLWordPrintableJSON

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

      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 Brody (Inactive)
            Reporter:
            Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: