Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15869

BlockDecompressorStream#decompress should not return -1 in case of IOException.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 3.3.0, 3.1.2, 3.2.1
    • None
    • None

    Description

      BlockDecompressorStream#decompress() return -1 in case of BlockMissingException. Application which is using BlockDecompressorStream may think file is empty and proceed further. But actually read operation should fail.

      // Get original data size
      try {
         originalBlockSize = rawReadInt();
      } catch (IOException ioe) {
         return -1;
      }

      Attachments

        1. HADOOP-15869.01.patch
          3 kB
          Surendra Singh Lilhore

        Activity

          People

            surendralilhore Surendra Singh Lilhore
            surendralilhore Surendra Singh Lilhore
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: