You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Li Ping Zhang (JIRA)" <ji...@apache.org> on 2012/11/28 08:36:58 UTC
[jira] [Reopened] (HBASE-7119)
org.apache.hadoop.hbase.io.TestHeapSize failed with testNativeSizes unit
test
[ https://issues.apache.org/jira/browse/HBASE-7119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Li Ping Zhang reopened HBASE-7119:
----------------------------------
It is a failure when running the UT with non-SUN JDK(like IBM). This issue is due to different implementation of ConcurrentHashMap and ArraryList between different JVM vendors(like IBM jdk, SUN jdk). The solution is to modify src/main/java/org/apache/hadoop/hbase/util/ClassSize.java, and set CONCURRENT_HASHMAP and ARRAYLIST to the right size with the right JVM vendor. I have fixed it with a patch, and have tested it with UT successfully, and also run full UT to ensure the patch doesn't cause any new issue. I can work with fixing this JIRA if it is needed.
> org.apache.hadoop.hbase.io.TestHeapSize failed with testNativeSizes unit test
> -----------------------------------------------------------------------------
>
> Key: HBASE-7119
> URL: https://issues.apache.org/jira/browse/HBASE-7119
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.90.4, 0.90.5, 0.92.0, 0.94.0
> Environment: RHEL 5.3, open JDK 1.6
> Reporter: Li Ping Zhang
> Assignee: Li Ping Zhang
> Labels: patch
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Running org.apache.hadoop.hbase.io.TestHeapSize
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec <<< FAILURE!
> testNativeSizes(org.apache.hadoop.hbase.io.TestHeapSize) Time elapsed: 0.01 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<64> but was:<56>
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.failNotEquals(Assert.java:283)
> at junit.framework.Assert.assertEquals(Assert.java:64)
> at junit.framework.Assert.assertEquals(Assert.java:130)
> at junit.framework.Assert.assertEquals(Assert.java:136)
> at org.apache.hadoop.hbase.io.TestHeapSize.testNativeSizes(TestHeapSize.java:75)
>
--
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