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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.");
            }
      

        Attachments

        1. h1624_20110211.patch
          0.7 kB
          Tsz Wo Nicholas Sze

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: