-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16914. Add some logs for updateBlockForPipeline RPC. #5381
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-16914. Add some logs for updateBlockForPipeline RPC. #5381
Conversation
...s-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Outdated
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
b4c21b8 to
3218e76
Compare
|
💔 -1 overall
This message was automatically generated. |
...-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
Outdated
Show resolved
Hide resolved
3218e76 to
0147620
Compare
|
💔 -1 overall
This message was automatically generated. |
slfan1989
left a comment
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
tomscut
left a comment
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.
0147620 to
26a2424
Compare
|
@slfan1989 @tomscut modify the log content. add "success" literal. |
|
💔 -1 overall
This message was automatically generated. |
| // Ensure we record the new generation stamp | ||
| getEditLog().logSync(); | ||
| LOG.info("bumpBlockGenerationStamp({}, client={}) success", | ||
| locatedBlock.getBlock(), clientName); |
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.
@tomscut We record block information, will there be a lot of logs? Is it changed to debug?
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.
@slfan1989 hi, thanks for your review, the frequency of bumpBlockGenerationStamp logs is approximately equal to the frequency of updatePipeline. So, i think we can use INFO level here.
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.
@tomscut We record block information, will there be a lot of logs? Is it changed to debug?
I was worried about this before, but through offline discussions and testing with @hfutatzhanghb , we found that the logs were not too frequent.
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.
@hfutatzhanghb @tomscut Thanks for the information!
|
Thanks @hfutatzhanghb for your contribution! And Thanks @slfan1989 for your review! |
Reviewed-by: Shilun Fan <[email protected]> Signed-off-by: Tao Li <[email protected]>
https://issues.apache.org/jira/browse/HDFS-16914