You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (Commented) (JIRA)" <ji...@apache.org> on 2012/03/08 00:54:58 UTC
[jira] [Commented] (HADOOP-8151) Error handling in snappy
decompressor throws invalid exceptions
[ https://issues.apache.org/jira/browse/HADOOP-8151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224848#comment-13224848 ]
Todd Lipcon commented on HADOOP-8151:
-------------------------------------
This bug seems to occur in lz4 as well.
It also seems like the wrong kind of exception to throw - InternalError is for JVM-internal unexpected conditions.
> Error handling in snappy decompressor throws invalid exceptions
> ---------------------------------------------------------------
>
> Key: HADOOP-8151
> URL: https://issues.apache.org/jira/browse/HADOOP-8151
> Project: Hadoop Common
> Issue Type: Bug
> Components: io, native
> Affects Versions: 0.24.0, 1.0.2
> Reporter: Todd Lipcon
>
> SnappyDecompressor.c has the following code in a few places:
> {code}
> THROW(env, "Ljava/lang/InternalError", "Could not decompress data. Buffer length is too small.");
> {code}
> this is incorrect, though, since the THROW macro doesn't need the "L" before the class name. This results in a ClassNotFoundException for Ljava.lang.InternalError being thrown, instead of the intended exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira