hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9588) unit test failure: org.apache.hadoop.io.compress.TestCodec.testGzipLongOverflow
Date Fri, 26 Jul 2013 19:23:49 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721108#comment-13721108

Chris Nauroth commented on HADOOP-9588:

This failure only repros for me when the native code is loaded.  The problem is this assertion:
  public void testGzipLongOverflow() throws IOException {

    // Don't use native libs for this test.
    Configuration conf = new Configuration();
    conf.setBoolean("io.native.lib.available", false);
    assertFalse("ZlibFactory is using native libs against request",
The test is trying to disable native library loading by setting configuration, but the code
in {{ZlibFactory}} isn't inspecting the correct configuration property:
  public static boolean isNativeZlibLoaded(Configuration conf) {
    return nativeZlibLoaded && conf.getBoolean("hadoop.native.lib", true); 
The trunk version of the code doesn't have this problem.
> unit test failure: org.apache.hadoop.io.compress.TestCodec.testGzipLongOverflow
> -------------------------------------------------------------------------------
>                 Key: HADOOP-9588
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9588
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.3.0
>         Environment: https://builds.apache.org/job/Hadoop-branch1/lastCompletedBuild/testReport/org.apache.hadoop.io.compress/TestCodec/testGzipLongOverflow/
>            Reporter: Giridharan Kesavan
> Error Message
> ZlibFactory is using native libs against request
> Stacktrace
> junit.framework.AssertionFailedError: ZlibFactory is using native libs against request
> 	at org.apache.hadoop.io.compress.TestCodec.testGzipLongOverflow(TestCodec.java:822)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message