[2.x] Deprecate public methods and variables with master term in package 'org.opensearch.action.support.master' (#3617) #3643
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Backport PR #3617 / commit 60d7a09 , and PR #3644 to
2.x
branchReplace
master
terminology bycluster manager
in the public Java APIs to support inclusive language.The PR deal with the public method and variable in the package
org.opensearch.action.support.master
(which is now renamed toorg.opensearch.action.support.clustermanager
)deprecated
annotation to them.The renaming changes are done by the Rename refactoring feature of IntelliJ IDEA, so that both the definition and reference can be renamed.
Renamed and deprecated method and variable list:
In class
MasterNodeOperationRequestBuilder
-final RequestBuilder setMasterNodeTimeout(TimeValue timeout)
final RequestBuilder setMasterNodeTimeout(String timeout)
In class
MasterNodeRequest
-TimeValue DEFAULT_MASTER_NODE_TIMEOUT
TimeValue masterNodeTimeout
Request masterNodeTimeout(TimeValue timeout)
Request masterNodeTimeout(String timeout)
TimeValue masterNodeTimeout()
In class
TransportMasterNodeAction
-void masterOperation(Request request, ClusterState state, ActionListener listener)
void masterOperation(Task task, Request request, ClusterState state, ActionListener listener)
String getMasterActionName(DiscoveryNode node)
In class
TransportClusterInfoAction
-void masterOperation(final Request request, final ClusterState state, final ActionListener listener)
void doMasterOperation(Request request, String[] concreteIndices, ClusterState state, ActionListener listener)
Issues Resolved
The last step for issue #3542
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.