[SERVER-52594] Integrate ReshardingOplogApplier into RecipientStateMachine Created: 03/Nov/20  Updated: 29/Oct/23  Resolved: 03/Dec/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: PM-234-M2, PM-234-T-oplog-apply
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-49291 Abort resharding operation if collect... Closed
depends on SERVER-52593 Integrate ReshardingOplogFetcher into... Closed
is depended on by SERVER-51088 Create ReshardingFixture class for re... Closed
Duplicate
is duplicated by SERVER-53189 Coverity analysis defect 116712: Pars... Closed
Related
related to SERVER-49909 Error if resharding's oplog applicati... Closed
related to SERVER-52921 Integrate config.transactions cloner ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-12-14
Participants:
Story Points: 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.


 Comments   
Comment by Githook User [ 03/Dec/20 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-52594 Apply oplog entries as part of resharding.
Branch: master
https://github.com/mongodb/mongo/commit/2f470d5c2b3f1e06d1d12b25918009241470591a

Generated at Thu Feb 08 05:28:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.