Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1624

Append: The condition is incorrect for checking whether the last block is full

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 0.21.0, 0.22.0, 0.23.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When the last block is full, the free space should be 0 but not equal to block size.

      //In DFSOutputStream.DataStreamer.DataStreamer(..),
            if (freeInLastBlock == blockSize) {
              throw new IOException("The last block for file " + 
                  src + " is full.");
            }
      
      1. h1624_20110211.patch
        0.7 kB
        Tsz Wo Nicholas Sze

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Tsz Wo Nicholas Sze
            Reporter:
            Tsz Wo Nicholas Sze
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development