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 "rickboker (Jira)" <ji...@apache.org> on 2022/12/01 08:02:00 UTC

[jira] [Created] (HDFS-16857) It could be negative count, when set quota in first time.

rickboker created HDFS-16857:
--------------------------------

             Summary: It could be negative count, when set quota in first time.
                 Key: HDFS-16857
                 URL: https://issues.apache.org/jira/browse/HDFS-16857
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: metrics, namenode
    Affects Versions: 3.3.1, 3.1.1
            Reporter: rickboker


First create a directory,And put 5GB files in directory.

_*hdfs dfs -du -h -s /test*_
_*5.0 G  15.0 G  /test*_

Second we set quota with 1GB.

Then we check the quota, it will be a negative number.

_*hdfs dfs -count -q -v -h /test*_
_*QUOTA   REM_QUOTA SPACE_QUOTA REM_SPACE_QUOTA  DIR_COUNT FILE_COUNT CONTENT_SIZE PATHNAME*_
_*none             inf             1 G         -14.0 G           19           31              5.0 G /test*_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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