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 "Chris Nauroth (JIRA)" <ji...@apache.org> on 2013/07/26 21:23:49 UTC

[jira] [Commented] (HADOOP-9588) unit test failure: org.apache.hadoop.io.compress.TestCodec.testGzipLongOverflow

    [ 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:
{code}
  public void testGzipLongOverflow() throws IOException {
    LOG.info("testGzipLongOverflow");

    // 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",
        ZlibFactory.isNativeZlibLoaded(conf));
{code}
The test is trying to disable native library loading by setting configuration, but the code in {{ZlibFactory}} isn't inspecting the correct configuration property:
{code}
  public static boolean isNativeZlibLoaded(Configuration conf) {
    return nativeZlibLoaded && conf.getBoolean("hadoop.native.lib", true); 
  }
{code}
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