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

Add invariants to ensure proper primary transition state changes

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

      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@mongodb.com Siyuan Zhou
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: