HDFS-16627. Improve BPServiceActor#register log to add NameNode address.#4419
HDFS-16627. Improve BPServiceActor#register log to add NameNode address.#4419Hexiaoqiao merged 4 commits intoapache:trunkfrom
Conversation
ZanderXu
left a comment
There was a problem hiding this comment.
LGTM. Thanks @slfan1989
|
💔 -1 overall
This message was automatically generated. |
Hexiaoqiao
left a comment
There was a problem hiding this comment.
@slfan1989 Thanks for your contributions. Leave one nit comment about format, others make sense to me. Will +1 once the format issue fixed. Thanks
| DatanodeRegistration newBpRegistration = bpos.createRegistration(); | ||
|
|
||
| LOG.info(this + " beginning handshake with NN"); | ||
| LOG.info("{} beginning handshake with NN:{}", this, nnAddr); |
There was a problem hiding this comment.
Please keep the same format of log, such as delete the blank at end of a sentence, leave one blank between two words. such as,
L819: LOG.info("{} beginning handshake with NN: {}", this, nnAddr);
L831: LOG.info("Problem connecting to server: {}", nnAddr);
There was a problem hiding this comment.
@Hexiaoqiao Thanks for your help reviewing the code, I will fix it.
Thank you for help to review the code! |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
@Hexiaoqiao Please help me review the code again! |
|
The latest build seems throw some warning. Try to trigger jenkins again. Let's wait what it will say. |
no problem, i will re-trigger jenkins! |
|
💔 -1 overall
This message was automatically generated. |
Hi, @Hexiaoqiao Thank you very much for your help in reviewing the code. I read the compilation report carefully and can confirm that the compilation error of java doc has nothing to do with this pr. java doc has become more strict in the compilation environment of jdk11, java doc will be run 2 times after a pr commit. 1st run hadoop-hdfs in trunk failed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1. 2nd run hadoop-hdfs in the patch failed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1. In 2 runs will report the following error I try to fix it in this pr(#4423), after solving the error, the java doc can be compiled successfully with jdk11. |
It makes sense to me. Committed to trunk. Thanks @slfan1989 for your contribution, and thanks @tomscut, @ZanderXu for your reviews. |
|
@Hexiaoqiao @tomscut @ZanderXu Thanks for helping to review the code! |
…ss. (apache#4419). Contributed by fanshilun.
JIRA:HDFS-16627. improve BPServiceActor#register Log Add NN Addr.
When I read the log, I think the Addr information of NN should be added to make the log information more complete.
The log is as follows: