You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Rodrigo Schmidt (JIRA)" <ji...@apache.org> on 2009/03/03 00:39:56 UTC
[jira] Updated: (HADOOP-5379) Throw exception instead of writing to
System.err when there is a CRC error on CBZip2InputStream
[ https://issues.apache.org/jira/browse/HADOOP-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodrigo Schmidt updated HADOOP-5379:
------------------------------------
Description:
>From org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.java:
{code}
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");
}
{code}
was:
>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");
}
> 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.0, 0.19.1, 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:
> {code}
> 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");
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.