Skip to content

[Backport 2.x] Deprecate class FakeThreadPoolMasterService, BlockMasterServiceOnMaster and BusyMasterServiceDisruption, in 'test/framework' directory#4068

Merged
tlfeng merged 1 commit into
2.xfrom
backport/backport-4058-to-2.x
Aug 1, 2022
Merged

[Backport 2.x] Deprecate class FakeThreadPoolMasterService, BlockMasterServiceOnMaster and BusyMasterServiceDisruption, in 'test/framework' directory#4068
tlfeng merged 1 commit into
2.xfrom
backport/backport-4058-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

@opensearch-trigger-bot opensearch-trigger-bot Bot commented Aug 1, 2022

Backport cebeb8c from #4058

To support inclusive language, the master terminology is going to be replaced by cluster manager in the code base.

In a previous PR #4051 / commit bea5d1a, 3 classes in test/framework directory that contains master in the name were renamed:

FakeThreadPoolMasterService -> FakeThreadPoolClusterManagerService
BlockMasterServiceOnMaster -> BlockClusterManagerServiceOnClusterManager
BusyMasterServiceDisruption -> BusyClusterManagerServiceDisruption

This is a following PR to add back the classes with the old name to keep the backwards compatibility. The classes with the old name will be subclass of the classes with new name, so that maintaining one implementation can support the usage for two classes.

…er and BusyMasterServiceDisruption (#4058)

To support inclusive language, the master terminology is going to be replaced by cluster manager in the code base.

In a previous PR #4051, 3 classes in `test/framework` directory that contains `master` in the name were renamed:
```
FakeThreadPoolMasterService -> FakeThreadPoolClusterManagerService
BlockMasterServiceOnMaster -> BlockClusterManagerServiceOnClusterManager
BusyMasterServiceDisruption -> BusyClusterManagerServiceDisruption
```

This is a following commit to add back the classes with the old name to keep the backwards compatibility. The classes with the old name will be subclass of the classes with new name, so that maintaining one implementation can support the usage for two classes.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
(cherry picked from commit cebeb8c)
@opensearch-trigger-bot opensearch-trigger-bot Bot requested review from a team and reta as code owners August 1, 2022 16:28
@tlfeng tlfeng added enhancement Enhancement or improvement to existing feature or request backport PRs or issues specific to backporting features or enhancments v2.2.0 labels Aug 1, 2022
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 1, 2022

Gradle Check (Jenkins) Run Completed with:

@tlfeng tlfeng merged commit 517b815 into 2.x Aug 1, 2022
@tlfeng tlfeng deleted the backport/backport-4058-to-2.x branch August 1, 2022 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport PRs or issues specific to backporting features or enhancments enhancement Enhancement or improvement to existing feature or request v2.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants