Move ApplierState to OplogApplier

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • Repl 2019-09-23, Repl 2019-10-07, Repl 2019-10-21, Repl 2019-12-02
    • 45
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ApplierState is an enum with values Running, Draining, and Stopped. It is currently owned by the ReplicationCoordinator. Move it to OplogApplier: it belongs there, and it will be easier to unittest drain mode once the OplogApplier and ReplicationCoordinator are less tightly coupled.

      Currently, the oplog application code calls ReplicationCoordinator::getApplierState to determine its state. After this step, the oplog application code will own the ApplierState, and ReplicationCoordinator will call OplogApplier methods to change the state.

              Assignee:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: