-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate and Rename abstract methods from 'Master' terminology to 'ClusterManager'. #4032
Deprecate and Rename abstract methods from 'Master' terminology to 'ClusterManager'. #4032
Conversation
…terManager. Signed-off-by: Rishikesh1159 <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #4032 +/- ##
============================================
- Coverage 70.65% 70.57% -0.08%
+ Complexity 56904 56897 -7
============================================
Files 4579 4582 +3
Lines 273780 273925 +145
Branches 40143 40158 +15
============================================
- Hits 193445 193336 -109
- Misses 64119 64334 +215
- Partials 16216 16255 +39
Help us with your feedback. Take ten seconds to tell us how you rate us. |
@@ -117,13 +117,24 @@ protected TransportClusterManagerNodeAction( | |||
|
|||
protected abstract Response read(StreamInput in) throws IOException; | |||
|
|||
protected abstract void masterOperation(Request request, ClusterState state, ActionListener<Response> listener) throws Exception; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrross Do you think we'd better add a comment in the code to remind adding back the abstract
keyword after removing the deprecated method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we follow this up right after this is merged with a PR on main that removes the master methods and makes the methods abstract? If for some reason we can't do that then a comment is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we are going to remove the deprecated methods in version 3.0, which is the code in main
branch, but I will write it down in to remind in issue #3542 or a new issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 A small issue related to the 2 concrete methods masterOperation()
.
...ain/java/org/opensearch/action/support/clustermanager/TransportClusterManagerNodeAction.java
Show resolved
Hide resolved
.../main/java/org/opensearch/action/support/clustermanager/info/TransportClusterInfoAction.java
Show resolved
Hide resolved
…them. Signed-off-by: Rishikesh1159 <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Rishikesh1159 <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
…lusterManager'. (#4032) This commit deprecates and renames the following abstract methods: ``` In class TransportMasterNodeAction - abstract void masterOperation(Request request, ClusterState state, ActionListener listener) In class TransportClusterInfoAction - abstract void doMasterOperation(Request request, String[] concreteIndices, ClusterState state, ActionListener listener) In class TestCluster: public abstract int numDataAndMasterNodes(); ``` and the following concrete methods: ``` In class TransportMasterNodeAction - void masterOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener) In class TransportClusterInfoAction - void masterOperation(final Request request, final ClusterState state, final ActionListener<Response> listener) ``` Signed-off-by: Rishikesh1159 <[email protected]> (cherry picked from commit 2a1b239)
Signed-off-by: Rishikesh1159 [email protected]
Description
This PR deprecates and renames the following abstract methods:
Issues Resolved
Part of #3542, #3544
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.