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

        Tsz Wo Nicholas Sze created issue -
        Tsz Wo Nicholas Sze made changes -
        Field Original Value New Value
        Attachment h1624_20110211.patch [ 12470845 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.21.0 [ 12314046 ]
        Affects Version/s 0.22.0 [ 12314241 ]
        Affects Version/s 0.23.0 [ 12315571 ]
        Tsz Wo Nicholas Sze made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]

          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