[
https://issues.apache.org/jira/browse/HBASE-21479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16690949#comment-16690949
]
Peter Somogyi commented on HBASE-21479:
---------------------------------------
My progress so far:
Not only testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent fails when
executed alone but I also found testReplayRegionOpenEventAfterFlushStart which
does the same. When these tests are executed after
testReplayingFlushRestoresReadsEnabledState both of these tests succeed. When
testReplayRegionOpenEventAfterFlushStart started after
testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent the second test passes,
first fails.
I mostly debugged testReplayRegionOpenEventAfterFlushStart where I noticed when
the WAL entries are replayed the WAL does not have all the events. The test
puts 100 rows to table, flushes, puts another 100 records and closes the
region. At this point the WAL has records up to 194, 195-199 are missing.
{noformat:title=WAL file last lines, single test execution}
Sequence=200 , region=ba46b889d8a45a1eea5fa23849f788ea at write timestamp=Sun
Nov 18 17:06:24 CET 2018
row=193, column=cf1:cq
cell total size sum: 80
row=193, column=cf2:cq
cell total size sum: 80
row=193, column=cf3:cq
cell total size sum: 80
edit heap size: 280
position: 36668
Sequence=201 , region=ba46b889d8a45a1eea5fa23849f788ea at write timestamp=Sun
Nov 18 17:06:24 CET 2018
row=194, column=cf1:cq
cell total size sum: 80
row=194, column=cf2:cq
cell total size sum: 80
row=194, column=cf3:cq
cell total size sum: 80
edit heap size: 280
position: 36853{noformat}
{noformat:title=WAL file last lines, execution with
testReplayingFlushRestoresReadsEnabledState}
Sequence=206 , region=1cc10247dac9b10b67635edd2d05d032 at write timestamp=Sun
Nov 18 17:01:05 CET 2018
row=199, column=cf1:cq
cell total size sum: 80
row=199, column=cf2:cq
cell total size sum: 80
row=199, column=cf3:cq
cell total size sum: 80
edit heap size: 280
position: 37778
Sequence=208 , region=1cc10247dac9b10b67635edd2d05d032 at write timestamp=Sun
Nov 18 17:01:05 CET 2018
row=\x00, column=METAFAMILY:HBASE::FLUSH
cell total size sum: 304
edit heap size: 344
position: 38122
Sequence=209 , region=1cc10247dac9b10b67635edd2d05d032 at write timestamp=Sun
Nov 18 17:01:05 CET 2018
row=\x00, column=METAFAMILY:HBASE::FLUSH
cell total size sum: 408
edit heap size: 448
position: 38568
Sequence=210 , region=1cc10247dac9b10b67635edd2d05d032 at write timestamp=Sun
Nov 18 17:01:05 CET 2018
row=\x00, column=METAFAMILY:HBASE::REGION_EVENT
cell total size sum: 320
edit heap size: 360
position: 38930
Sequence=212 , region=1cc10247dac9b10b67635edd2d05d032 at write timestamp=Sun
Nov 18 17:01:05 CET 2018
row=\x00, column=METAFAMILY:HBASE::REGION_EVENT
cell total size sum: 528
edit heap size: 568
position: 39496
{noformat}
> TestHRegionReplayEvents#testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent
> fails with IndexOutOfBoundsException
> ------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-21479
> URL: https://issues.apache.org/jira/browse/HBASE-21479
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Major
> Attachments: testHRegionReplayEvents-output.txt
>
>
> The test fails in both master branch and branch-2 :
> {code}
> testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent(org.apache.hadoop.hbase.regionserver.TestHRegionReplayEvents)
> Time elapsed: 3.74 sec <<< ERROR!
> java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
> at
> org.apache.hadoop.hbase.regionserver.TestHRegionReplayEvents.testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent(TestHRegionReplayEvents.java:1042)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)