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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.21.0
    • 0.19.2, 0.20.0
    • io
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: