Integrate ReshardingOplogApplier into RecipientStateMachine

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-12-14
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The RecipientStateMachine should manage a task executor for the ReshardingOplogApplier instances to be scheduled on. This may most easily be achieved by scheduling tasks on the same ScopedTaskExecutor the RecipientStateMachine instance is running on. The RecipentStateMachine should also manage a ThreadPool for the ReshardingOplogApplier instances to schedule their batches of donor oplog application on.

      • The ReshardingOplogApplier instances should be constructed upon transitioning into the "applying" state.
      • The transition to "steady-state" should be gated on the future returned by ReshardingOplogApplier::applyUntilCloneFinishedTs() becoming ready.
      • The transition to "strict-consistency" should be gated on the future returned by ReshardingOplogApplier::applyUntilDone() becoming ready.

              Assignee:
              Max Hirschhorn
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: