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

Integrate ReshardingOplogApplier into RecipientStateMachine

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

      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@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: