Brahma Reddy Battula created HDFS-5215:
------------------------------------------

             Summary: dfs.datanode.du.reserved is not taking effect as it's not 
considered while getting the available space
                 Key: HDFS-5215
                 URL: https://issues.apache.org/jira/browse/HDFS-5215
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: datanode
            Reporter: Brahma Reddy Battula
            Assignee: Brahma Reddy Battula


public long getAvailable() throws IOException {
    long remaining = getCapacity()-getDfsUsed();
    long available = usage.getAvailable();
    if (remaining > available) {
      remaining = available;
    }
    return (remaining > 0) ? remaining : 0;
  }


Here we are not considering the reserved space while getting the Available 
Space.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to