[ 
https://issues.apache.org/jira/browse/HBASE-17896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962642#comment-15962642
 ] 

Yu Li commented on HBASE-17896:
-------------------------------

bq. The fix is to avoid the test failure when running test without unsafe
I see, so the patch is not only about fixing Segment heap size accounting, but 
also fixes TestHeapSize#testObjectSize when w/o unsafe. Good catch.

> The FIXED_OVERHEAD of Segment is incorrect
> ------------------------------------------
>
>                 Key: HBASE-17896
>                 URL: https://issues.apache.org/jira/browse/HBASE-17896
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-17896.v0.patch
>
>
> {noformat}
> 5 * ClassSize.REFERENCE // cellSet, comparator, memStoreLAB, size, 
> timeRangeTracker
> {noformat}
> In fact, the Segment has 6 references.
> # cellSet
> # comparator
> # memStoreLAB
> # dataSize
> # heapSize
> # timeRangeTracker



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to