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

Harsh J commented on HDFS-4:
----------------------------

Are there any other disadvantages you can think of in going with 
used+available? Any edge cases where that sum may be incorrect to use?
                
> DF should use used + available as the capacity of this volume
> -------------------------------------------------------------
>
>                 Key: HDFS-4
>                 URL: https://issues.apache.org/jira/browse/HDFS-4
>             Project: Hadoop HDFS
>          Issue Type: Bug
>         Environment: UNIX
>            Reporter: Rong-En Fan
>              Labels: newbie
>
> Generally speaking, UNIX tends to keep certain percentage of disk space 
> reserved for root used only (can be changed via tune2fs or when mkfs). 
> Therefore, Hadoop's DF class should not use the 1st number in df output as 
> the capacity of this volume. Instead, it should use used+available as its 
> capacity.
> Otherwise, datanode may think this volume is not full but in fact it is.
> The code in question is src/core/org/apache/hadoop/fs/DF.java, method 
> parseExecResult()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to