-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate public methods and variables that contain 'master' terminol…
…ogy in 'test/framework' directory (#3978) (#3987) * Deprecate methods with 'master' name mainly in class 'InternalTestCluster', 'NodeRoles', and 'AbstractSnapshotIntegTestCase' * Deprecate variables contain 'master' in the name in class 'InternalTestCluster' Signed-off-by: Tianli Feng <[email protected]> (cherry picked from commit 5db75c1) Co-authored-by: Tianli Feng <[email protected]> To support inclusive language, the `master` terminology is going to be replaced by `cluster manager` in the code base. This PR deprecate public and protected methods/variable that contains `master` terminology in the name in `test/framework` directory, and create alternatives. List of public methods in `test/framework` directory that renamed in this PR: ``` public static String blockMasterFromFinalizingSnapshotOnIndexFile(final String repositoryName) { public static String blockMasterOnWriteIndexFile(final String repositoryName) { public static void blockMasterFromDeletingIndexNFile(String repositoryName) { public static String blockMasterFromFinalizingSnapshotOnSnapFile(final String repositoryName) { public Client masterClient() { public Client nonMasterClient() { public boolean isMasterEligible() { public synchronized <T> T getCurrentMasterNodeInstance(Class<T> clazz) { public <T> Iterable<T> getDataOrMasterNodeInstances(Class<T> clazz) { public <T> T getMasterNodeInstance(Class<T> clazz) { public synchronized void stopCurrentMasterNode() throws IOException { public synchronized void stopRandomNonMasterNode() throws IOException { public String getMasterName() { public String getMasterName(@nullable String viaNode) { public List<String> startMasterOnlyNodes(int numNodes) { public List<String> startMasterOnlyNodes(int numNodes, Settings settings) { public int numMasterNodes() { public static Settings masterNode() public static Settings masterNode(final Settings settings) public static Settings masterOnlyNode() public static Settings masterOnlyNode(final Settings settings) public static Settings nonMasterNode() public static Settings nonMasterNode(final Settings settings) public Version masterVersion() ``` List of public variables in `test/framework` directory that renamed in this PR: (all in `org.opensearch.test.InternalTestCluster`) ``` public static final int DEFAULT_LOW_NUM_MASTER_NODES public static final int DEFAULT_HIGH_NUM_MASTER_NODES public static final int REMOVED_MINIMUM_MASTER_NODES ``` public that not renamed in this PR: ``` public static MasterService createMasterService(ThreadPool threadPool, ClusterState initialClusterState) public static MasterService createMasterService(ThreadPool threadPool, DiscoveryNode localNode) public abstract int numDataAndMasterNodes(); ``` Reason for the above are not deprecated and renamed: 1. The class `MasterService` is not deprecated, and needs to find a solution to deal with deprecating this class in the return value. 2. abstract methods will be deprecated in a separate PR.
- Loading branch information
1 parent
c0b1b59
commit fb4f96f
Showing
71 changed files
with
539 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.