-
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-18387. Fix incorrect placeholder in hadoop-common #4679
Conversation
💔 -1 overall
This message was automatically generated. |
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.
one line to change, one change to revert
@@ -256,9 +256,9 @@ public <T extends FileSystem & Renewable> void removeRenewAction( | |||
try { | |||
action.cancel(); | |||
} catch (InterruptedException ie) { | |||
LOG.error("Interrupted while canceling token for " + fs.getUri() | |||
LOG.error("Interrupted while canceling token for {} filesystem." + fs.getUri() |
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.
needs to move the fs.geturi to a param, not string concat
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.
Thanks for the help reviewing the code, I will fix it.
@@ -224,7 +224,7 @@ protected void serviceStart() throws Exception { | |||
bindingDiagnosticDetails(), | |||
dumpRegistryRobustly(true)); | |||
|
|||
LOG.error(" Failure {}", e, e); | |||
LOG.error(" Failure {}", e.getMessage(), e); |
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.
-1. to this change
L227 is valid; it calls e.toString on demand and handles any errors raised. the second e forms the stack trace.
e.getMessage() is null on some exceptions, like NPE
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 will revert it.
@steveloughran Please help to review the code again, thank you very much! |
LOG.error("Interrupted while canceling token for " + fs.getUri() | ||
+ "filesystem"); | ||
LOG.debug("Exception in removeRenewAction: {}", ie); | ||
LOG.error("Interrupted while canceling token for {} filesystem." , fs.getUri()); |
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.
Remove the useless space before the comma?
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.
@ZanderXu Thanks for the review, it has been fixed.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
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. let's see what yetus says
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 +1, Thanks @slfan1989
@steveloughran Thanks for helping review the code! |
Thanks also for your help reviewing the code. |
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
Thanks everyone! |
…. Contributed by fanshilun.
JIRA: HADOOP-18387. Fix incorrect placeholder in hadoop-module.