[
https://issues.apache.org/jira/browse/HBASE-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HBASE-2884:
-------------------------------
Attachment: hbase-2884.txt
Attached patch ensures that different mappers generate different data, even if
they have the same random number generator. Tested this by changing it the old
code to 'new Random(5)' and seeing that it failed with the same message Kannan
saw. Then added the workaround to set the last byte of the key to the task ID,
and verified that the test passed.
> TestHFileOutputFormat intermittent diff: LoadIncrementalHFiles should put
> expected data in table expected:<2048> but was:<1024>
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-2884
> URL: https://issues.apache.org/jira/browse/HBASE-2884
> Project: HBase
> Issue Type: Bug
> Reporter: Kannan Muthukkaruppan
> Attachments: hbase-2884.txt, TestHFileOutputFormat-output.txt,
> TestHFileOutputFormat.txt
>
>
> {code}
> Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 160.582 sec
> <<< FAILURE!
> testMRIncrementalLoad(org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat)
> Time elapsed: 85.676 sec <<< FAILURE!
> java.lang.AssertionError: LoadIncrementalHFiles should put expected data in
> table expected:<2048> but was:<1024>
> at org.junit.Assert.fail(Assert.java:91)
> at org.junit.Assert.failNotEquals(Assert.java:645)
> at org.junit.Assert.assertEquals(Assert.java:126)
> at org.junit.Assert.assertEquals(Assert.java:470)
> at
> org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat.doIncrementalLoadTest(TestHFileOutputFormat.java:300)
> at
> org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat.testMRIncrementalLoad(TestHFileOutputFormat.java:248)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}
> Will upload full test output shortly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.