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

Move ApplierState to OplogApplier

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Sprint:
      Repl 2019-09-23, Repl 2019-10-07, Repl 2019-10-21, Repl 2019-12-02
    • Linked BF Score:
      45

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: