hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hemanthboyina (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-14764) HDFS count doesn't include snapshot files correctly
Date Thu, 22 Aug 2019 09:14:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-14764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913164#comment-16913164
] 

hemanthboyina commented on HDFS-14764:
--------------------------------------

          _While the count command shows there is still space._

          _Because, when we write files into a directory, it will also check the snapshot
files. But the count command will not check._

[~renxunsaky] good analysis , feel it is a valid issue , need to fix

> HDFS count doesn't include snapshot files correctly
> ---------------------------------------------------
>
>                 Key: HDFS-14764
>                 URL: https://issues.apache.org/jira/browse/HDFS-14764
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Xun REN
>            Priority: Major
>         Attachments: hdfs_count_withsnapshot.txt
>
>
> Hi,
>  
> When we set a quota on a path, and that path contains some snapshots, in this case, the
status shown by the command "hdfs dfs -count -v -q /my_path" doesn't match the real quota
usage.
> The -count here will only count the current path without counting the files in the snapshots
which are already deleted in the current path.
> If there is a job continues to write files into that path, it will report an error like 
> {code:java}
> The NameSpace quota (directories and files) of directory /my_path is exceeded{code}
> While the count command shows there is still space.
> Because, when we write files into a directory, it will also check the snapshot files.
But the count command will not check.
>  
> The idea here is to modify the report of "hdfs dfs -count" to include also the files
in snapshots. Ideally, we could add an additional column to show the total number of files
of the current directory + files deleted from the current directory but referenced in the
snapshots.
>  
> You could find in the attached text file the steps to reproduce the issue.
>  
> Thanks.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message