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

ASF GitHub Bot commented on HDFS-17035:
---------------------------------------

hfutatzhanghb opened a new pull request, #5708:
URL: https://github.com/apache/hadoop/pull/5708

   ### Description of PR
   
   Currently, method getActualNonDfsUsed may return negative value, which can 
cause getRemainingReserved computed inaccurately.
   
   The reason is FsVolumeImpl#getDfsUsed use GetSpaceUsed to compute the usage 
periodically, not in time.
   
   ### How was this patch tested?
   TestFsVolumeList
   TestRoundRobinVolumeChoosingPolicy
   TestAvailableSpaceVolumeChoosingPolicy
   
   
   




> FsVolumeImpl#getActualNonDfsUsed may return negative value
> ----------------------------------------------------------
>
>                 Key: HDFS-17035
>                 URL: https://issues.apache.org/jira/browse/HDFS-17035
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 3.4.0
>            Reporter: farmmamba
>            Priority: Minor
>




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

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

Reply via email to