[
https://issues.apache.org/jira/browse/HBASE-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972688#action_12972688
]
Jean-Daniel Cryans commented on HBASE-3371:
-------------------------------------------
Easy fix, force roll the logs when starting setUp:
{noformat}
+ // Starting and stopping replication can make us miss new logs,
+ // rolling like this makes sure the most recent one gets added to the queue
+ for ( JVMClusterUtil.RegionServerThread r :
+ utility1.getHBaseCluster().getRegionServerThreads()) {
+ r.getRegionServer().getWAL().rollWriter();
+ }
{noformat}
> Race in TestReplication can make it fail
> ----------------------------------------
>
> Key: HBASE-3371
> URL: https://issues.apache.org/jira/browse/HBASE-3371
> Project: HBase
> Issue Type: Bug
> Reporter: Jean-Daniel Cryans
> Assignee: Jean-Daniel Cryans
> Fix For: 0.90.0
>
>
> I found that truncating in TestReplication.setUp would sometime fail when
> during testStartStop the log would be rolled and not added to
> ReplicationSource's queue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.