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

Throw exception instead of writing to System.err when there is a CRC error on CBZip2InputStream

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.21.0
    • Fix Version/s: 0.19.2, 0.20.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      From org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.java:

      private static void reportCRCError() throws IOException {
         // The clean way would be to throw an exception.
         // throw new IOException("crc error");
      
         // Just print a message, like the previous versions of this class did
         System.err.println("BZip2 CRC error");
      }
      

        Attachments

        1. HADOOP-5379.patch
          0.8 kB
          Rodrigo Schmidt

          Issue Links

            Activity

              People

              • Assignee:
                rschmidt Rodrigo Schmidt
                Reporter:
                rschmidt Rodrigo Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: