-
Notifications
You must be signed in to change notification settings - Fork 8.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
HADOOP-16621. [pb-upgrade] Remove Protobuf classes from signatures of Public APIs. #1803
HADOOP-16621. [pb-upgrade] Remove Protobuf classes from signatures of Public APIs. #1803
Conversation
💔 -1 overall
This message was automatically generated. |
… Public APIs. Fixed findbugs
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.
LGTM; a few minor comments
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtobufHelper.java
Outdated
Show resolved
Hide resolved
return (bytes.length == 0) ? ByteString.EMPTY : ByteString.copyFrom(bytes); | ||
} | ||
|
||
public static Token<? extends TokenIdentifier> convert( |
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 think I'd prefer some explicit description "tokenFromProto", but not that fussy about overloading if you prefer that
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.
Okay, Will change method name.
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.
Updated PR. please check.
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtobufHelper.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
… Public APIs. Fixed Review comments
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.
LGTM(Pending Jenkins)
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Test failures seems to be unrelated. With same changes (except checkstyle fix) previous build was successfull. |
+1 |
Thanks @steveloughran @ayushtkn for reviews. |
… Public APIs. Contributed by Vinayakumar B. (apache#1803)
Removed below APIs from Token.java and replaced usages with helper methods moved from hadoop-hdfs-client module