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

Andrew Purtell commented on HBASE-10547:
----------------------------------------

The IBM JDK does not zero fill new byte[] allocations. Gary discovered this on 
HBASE-10527. Attaching a patch which gets this test passing for me. 

[~ndimiduk], do you want to zero fill new byte[] allocations made by the type 
library? We have Bytes.zero for that. Perhaps Bytes.zero could use, if Unsafe 
is available, a helper that zeros the byte array 8 bytes at a time until there 
are fewer than that remaining?

> TestFixedLengthWrapper#testReadWrite occasionally fails with the IBM JDK
> ------------------------------------------------------------------------
>
>                 Key: HBASE-10547
>                 URL: https://issues.apache.org/jira/browse/HBASE-10547
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.0
>         Environment: IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 
> Compressed References 20131114_175264 (JIT enabled, AOT enabled)
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>
> Here's the trace.
> {noformat}
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 29.288 sec 
> <<< FAILURE!
> testReadWrite(org.apache.hadoop.hbase.types.TestFixedLengthWrapper)  Time 
> elapsed: 0.025 sec  <<< FAILURE!
> arrays first differed at element [8]; expected:<-40> but was:<0>
>         at 
> org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:50)
>         at org.junit.Assert.internalArrayEquals(Assert.java:473)
>         at org.junit.Assert.assertArrayEquals(Assert.java:294)
>         at org.junit.Assert.assertArrayEquals(Assert.java:305)
>         at 
> org.apache.hadoop.hbase.types.TestFixedLengthWrapper.testReadWrite(TestFixedLengthWrapper.java:60)
> {noformat}
> This is with 0.98.0.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to