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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.21.0, 0.22.0, 0.23.0
    • None
    • None
    • 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 Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: