-
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
HDFS-17456. Fix the incorrect dfsused statistics of datanode when appending a file. #6713
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.
LGTM. Maybe we can use replicaInfo.getNumBytes()
...p-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeImpl.java
Outdated
Show resolved
Hide resolved
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.
@fuchaohong please describe this case in the Description window, thanks.
@ZanderXu done the describe, thanks. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@fuchaohong Hi, IIUC the |
|
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.
Got it. Make sense to me. +1.
Committed to trunk. Thanks @fuchaohong and @ZanderXu ! |
…ending a file. (apache#6713). Contributed by fuchaohong. Reviewed-by: ZanderXu <[email protected]> Signed-off-by: He Xiaoqiao <[email protected]>
…ending a file. (apache#6713). Contributed by fuchaohong. Reviewed-by: ZanderXu <[email protected]> Signed-off-by: He Xiaoqiao <[email protected]>
JIRA: HDFS-17456.
The effect of this patch is that when the replica is moved from the finalized directory to the rbw directory, dfsused will subtract the replica length.