[SERVER-55288] Improve ability to test resharding's RecipientStateMachine from C++ Created: 18/Mar/21  Updated: 29/Oct/23  Resolved: 22/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

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

Issue Links:
Depends
depends on SERVER-55289 Move RecipientStateMachine methods ac... Closed
is depended on by SERVER-55511 Handle recovery for resharding recipi... Closed
Related
is related to SERVER-54981 Improve ability to test resharding's ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-04-19, Sharding 2021-05-03
Participants:
Story Points: 2

 Description   

This involves doing the following:

  • Moving RecipientStateMachine methods which access Grid, ShardingState, ShardingCatalogClient, etc. behind a RecipientStateMachineExternalState interface.
  • Creating a ReshardingRecipientServiceTest fixture analogous to the ReshardingDonorServiceTest fixture from SERVER-54981.


 Comments   
Comment by Githook User [ 22/Apr/21 ]

Author:

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

Message: SERVER-55288 Re-add ReshardingRecipientServiceTest test fixture.

Decouples RecipientStateMachine unit testing from sharding environment
and from resharding data replication components.
Branch: master
https://github.com/mongodb/mongo/commit/574020b00707ee1e604465d60b239fa0a6662681

Comment by Githook User [ 21/Apr/21 ]

Author:

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

Message: SERVER-55288 Create RecipientStateMachineExternalState class.
Branch: master
https://github.com/mongodb/mongo/commit/b89d34f23aac73741ea8978bfb6438ba651dcc75

Comment by Githook User [ 09/Apr/21 ]

Author:

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

Message: SERVER-55288 Move recipient helpers into resharding_data_replication.
Branch: master
https://github.com/mongodb/mongo/commit/d7c268102917688e9763063d009ad04fdf1d3532

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