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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 3.3.0, 3.1.2, 3.2.1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              surendrasingh Surendra Singh Lilhore
              Reporter:
              surendrasingh Surendra Singh Lilhore
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: