I don't know why blockheadsize is depending on the JDK version.
I try to further analysis. 

My local this case passed.

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Stack
发送时间: 2011年11月15日 14:42
收件人: [email protected]
主题: Re: Build failed in Jenkins: HBase-TRUNK #2439

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