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

Integrate ReshardingOplogApplier into RecipientStateMachine

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              max.hirschhorn@mongodb.com Max Hirschhorn
              max.hirschhorn@mongodb.com Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: