On Mon, Nov 14, 2011 at 10:34 PM, Gaojinchao <[email protected]> wrote:
>  Look this comments
>  public void testBlockHeapSize() {
>    // We have seen multiple possible values for this estimate of the heap size
>    // of a ByteBuffer, presumably depending on the JDK version.
>    assertTrue(HFileBlock.BYTE_BUFFER_HEAP_SIZE == 64 ||
>               HFileBlock.BYTE_BUFFER_HEAP_SIZE == 80);
> But in https://issues.apache.org/jira/browse/HBASE-4768
>
> We add some code snippets:
>      assertEquals(80, HFileBlock.BYTE_BUFFER_HEAP_SIZE);
>      long byteBufferExpectedSize =
>          ClassSize.align(ClassSize.estimateBase(buf.getClass(), true)
>              + HFileBlock.HEADER_SIZE + size);

You think that broke sizing BlockHeapSize Gao?   You have a fix?

Thanks,
St.Ack

Reply via email to