You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jing Zhao (JIRA)" <ji...@apache.org> on 2016/09/21 18:00:24 UTC
[jira] [Comment Edited] (HDFS-9063) Correctly handle snapshot path
for getContentSummary
[ https://issues.apache.org/jira/browse/HDFS-9063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15510683#comment-15510683 ]
Jing Zhao edited comment on HDFS-9063 at 9/21/16 6:00 PM:
----------------------------------------------------------
[~manojg], the patch fixed a bug and did not change the semantic of {{du}} command. Before the patch, files that were created outside of a snapshot could be included when calculating the count/usage of the snapshot. The patch fixed this bug and there is such an example in the description.
For your case, maybe HDFS-8986 is the one related? Which Hadoop version are you using?
was (Author: jingzhao):
[~manojg], the patch fixed a bug and did not change the semantic of {{du}} command. Before the patch, files that were created outside of a snapshot could be included when calculating the count/usage of the snapshot. The patch fixed this bug and there is such an example int the description.
For your case, maybe HDFS-8986 is the one related? Which Hadoop version are you using?
> Correctly handle snapshot path for getContentSummary
> ----------------------------------------------------
>
> Key: HDFS-9063
> URL: https://issues.apache.org/jira/browse/HDFS-9063
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Fix For: 2.8.0, 3.0.0-alpha1
>
> Attachments: HDFS-9063.000.patch
>
>
> The current getContentSummary implementation does not take into account the snapshot path, thus if we have the following ops:
> 1. create dirs /foo/bar
> 2. take snapshot s1 on /foo
> 3. create a 1 byte file /foo/bar/baz
> then "du /foo" and "du /foo/.snapshot/s1" can report same results for "bar", which is incorrect since the 1 byte file is not included in snapshot s1.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org