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
HDFS-15594. Lazy calculate live datanodes in safe mode tip #2332
Conversation
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.
msg += String.format("The number of live datanodes %d has reached " | ||
+ "the minimum number %d. ", | ||
numLive, datanodeThreshold); | ||
msg += "The number of live datanodes is not calculated " + |
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.
As we are at it, does it make sense to use StringBuilder?
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.
fixed.
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 have triggered the build -
https://ci-hadoop.apache.org/job/hadoop-multibranch/view/change-requests/job/PR-2332/4/
The improvement seems fair enough, I don't think the message change would create any problem, Changing messages at UI is allowed.
It would change the exception text, I guess when there is a SafeModeException
through checkNameNodeSafeMode
in one case, but I don't think that would bother anyone as such. Should be all good.
There were a lot of failures because TestFileChecksum: |
https://issues.apache.org/jira/browse/HDFS-15594
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute