HDFS-16290.Make log more standardized when executing verifyAndSetNamespaceInfo().#3600
Merged
ayushtkn merged 1 commit intoapache:trunkfrom Oct 31, 2021
Merged
HDFS-16290.Make log more standardized when executing verifyAndSetNamespaceInfo().#3600ayushtkn merged 1 commit intoapache:trunkfrom
ayushtkn merged 1 commit intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
|
Some exceptions occurred here, during the operation of jenkins. It seems that these exceptions have little to do with the code I submitted. |
ayushtkn
reviewed
Oct 29, 2021
Member
There was a problem hiding this comment.
Can use logger format:
LOG.info("Acknowledging ACTIVE Namenode during handshake {}", actor);
Contributor
Author
2ec74aa to
bb326ae
Compare
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
tomscut
approved these changes
Oct 31, 2021
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
…spaceInfo(). (apache#3600) HDFS-16290.Make log more standardized when executing verifyAndSetNamespaceInfo(). (apache#3600). Contributed by JiangHua Zhu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
When the DataNode starting, BPOfferService#verifyAndSetNamespaceInfo() will be executed. If the namenode being connected is in Active state, the following information will be recorded:
'
2021-10-27 18:08:36,242 [50867]-INFO [Thread-33:BPOfferService@376]-Acknowledging ACTIVE Namenode during handshakeBlock pool BP-597961518-xxx.xxx.xxx.xxx-1534758275943 (Datanode Uuid 9b2aedc9-f8b2 -4ee2-b99f-877bc6e42c87) service to xxxx.xxx.xxx.org/xxxx.xxx.xxx.xxx:8021
'
Here, the connection between'handshake' and'Block pool' is too tight, and the readability is not good.
Details: HDFS-16290
How was this patch tested?
This is related to the log, and there is less information to change. For testing, there is not much pressure.