HDFS-17456. Fix the incorrect dfsused statistics of datanode when appending a file.#6713
Conversation
ZanderXu
left a comment
There was a problem hiding this comment.
LGTM. Maybe we can use replicaInfo.getNumBytes()
ZanderXu
left a comment
There was a problem hiding this comment.
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 |
|
Hexiaoqiao
left a comment
There was a problem hiding this comment.
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 <zanderxu@apache.org> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
…ending a file. (apache#6713). Contributed by fuchaohong. Reviewed-by: ZanderXu <zanderxu@apache.org> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
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.