-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-11251. Deprecate definitions and remove listTrash and recoverTrash APIs #7060
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
Conversation
6f5963a to
17f7cef
Compare
tanvipenumudy
left a comment
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.
Thank you @devabhishekpal for working on the patch!
I had a few comments around marking the remaining method implementations with a @Deprecated annotation over removing their implementation/throwing an UnsupportedOperationException, could you please take a look?
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Show resolved
Hide resolved
|
Hello @tanvipenumudy, |
|
@devabhishekpal Thanks for taking this up. @tanvipenumudy in my opinion, I would prefer to remove the codes entirely instead of adding |
|
Hi @ivandika3 , thanks for your inputs. Would you suggest to completely remove the code? |
@devabhishekpal Yes, since these APIs are never implemented and therefore should never be used. @adoroszlai Kindly need your input. |
|
#6725 removed another "not completely implemented" feature without deprecation. I guess we can remove this one, too. |
|
@devabhishekpal Thanks for the update. The current changes LGTM. Could you help fix the failed tests? |
|
Hi @ivandika3 @adoroszlai , But in the code for the test we are missing this from the OmUtils switch-case. So I tried out with marking the enum numbers as reserved, also tried marking as deprecated.
Wanted inputs on this and if there is any other way. |
|
@devabhishekpal I think we can keep the cases for listTrash and recoverTrash in Edit: Can add a Edit: Another way is to update |
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto
Outdated
Show resolved
Hide resolved
|
Thank you @ivandika3 and @adoroszlai for your opinions as well. I believe it's safe to remove the method definitions since the feature isn't completed yet. However, if these methods were previously in use, we need to ensure compatibility and thoroughly test the same. |
|
@devabhishekpal There is one test failure regarding |
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Show resolved
Hide resolved
fapifta
left a comment
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.
@devabhishekpal Thank you for working on this, I see there is still a test error that seem to be relevant, the om metrics related failure in your fork's CI run.
Can you please take a look at that, and one inline comment from me?
Other than that I think the PR is good to go, unfortunately until we have Hadoop 2.x support, we need to support the proto2 runtime, hence we can not use the reserved keyword to eliminate fileds, and enum values...
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
Outdated
Show resolved
Hide resolved
ivandika3
left a comment
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.
@devabhishekpal Thanks for the update. LGTM +1.
Let's wait for a green CI.
|
Thanks @devabhishekpal for the patch, and @adoroszlai , @tanvipenumudy , and @fapifta for the reviews. |
What changes were proposed in this pull request?
HDDS-11251. Deprecate definitions and remove listTrash and recoverTrash APIs
Please describe your PR in detail:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11251
How was this patch tested?
Patch was tested via unit tests