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

                 Key: HADOOP-5379
                 URL: https://issues.apache.org/jira/browse/HADOOP-5379
             Project: Hadoop Core
          Issue Type: Improvement
          Components: io
    Affects Versions: 0.19.1, 0.19.0, 0.19.2, 0.20.0, 0.21.0
            Reporter: Rodrigo Schmidt
            Assignee: Rodrigo Schmidt
            Priority: Minor


>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");
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to