Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5215

dfs.datanode.du.reserved is not considered while computing available space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0, 3.0.0-alpha1
    • 2.8.0, 2.7.1, 3.0.0-alpha1
    • datanode
    • None

    Description

      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.

      Attachments

        1. HDFS-5215.patch
          0.8 kB
          Brahma Reddy Battula
        2. HDFS-5215-002.patch
          0.9 kB
          Brahma Reddy Battula
        3. HDFS-5215-003.patch
          2 kB
          Brahma Reddy Battula
        4. HDFS-5215-004.patch
          2 kB
          Brahma Reddy Battula
        5. HDFS-5215-005.patch
          3 kB
          Brahma Reddy Battula

        Issue Links

          Activity

            People

              brahmareddy Brahma Reddy Battula
              brahmareddy Brahma Reddy Battula
              Votes:
              0 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: