Add invariants to ensure proper primary transition state changes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.15
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • Repl 2016-09-19, Repl 2016-10-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      enum PrimaryTransitionState {
      Secondary,
      CatchingUp,
      WaitingForDrainToBecomePrimary,
      WaitingForDrainButStaySecondary,
      Primary,
      }
      

      If a stepdown occurs in CatchingUp, we'd go straight back to Secondary. If it
      happens in WaitingForDrainToBecomePrimary, we'd go to
      WaitingForDrainButStaySecondary.

              Assignee:
              Siyuan Zhou
              Reporter:
              Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: