You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2013/09/17 04:09:51 UTC

[jira] [Created] (HDFS-5215) dfs.datanode.du.reserved is not taking effect as it's not considered while getting the available space

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