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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 2.7.1, 3.0.0-alpha1
    • Component/s: datanode
    • Labels:
      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-005.patch
          3 kB
          Brahma Reddy Battula
        2. HDFS-5215-004.patch
          2 kB
          Brahma Reddy Battula
        3. HDFS-5215-003.patch
          2 kB
          Brahma Reddy Battula
        4. HDFS-5215-002.patch
          0.9 kB
          Brahma Reddy Battula
        5. HDFS-5215.patch
          0.8 kB
          Brahma Reddy Battula

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: