[ 
https://issues.apache.org/jira/browse/HBASE-10032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell updated HBASE-10032:
-----------------------------------

    Attachment: 10032.patch

Without the attached patch, on JDK 8:
{noformat}
Running org.apache.hadoop.hbase.io.TestHeapSize
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.071 sec <<< 
FAILURE!

Results :

Failed tests:   testSizes(org.apache.hadoop.hbase.io.TestHeapSize): 
expected:<400> but was:<416>
  testNativeSizes(org.apache.hadoop.hbase.io.TestHeapSize): expected:<80> but 
was:<88>

Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
{noformat}

With the attached patch, on JDK 8:
{noformat}
Running org.apache.hadoop.hbase.io.TestHeapSize
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.878 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
{noformat}

With the attached patch, on JDK 7:
{noformat}
Running org.apache.hadoop.hbase.io.TestHeapSize
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.061 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
{noformat}

> [JDK8] ConcurrentSkipListMap class size changed
> -----------------------------------------------
>
>                 Key: HBASE-10032
>                 URL: https://issues.apache.org/jira/browse/HBASE-10032
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Trivial
>             Fix For: 0.98.0
>
>         Attachments: 10032.patch
>
>
> ConcurrentSkipListMap in JDK < 8 has as members an integer and 8 references. 
> In JDK 8, this changes to 6 members only. We can accommodate this change by 
> estimating the structure size rather than hardcoding it.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to