Skip to content

Commit

Permalink
HBASE-24080 [flakey test] TestRegionReplicaFailover.testSecondaryRegi…
Browse files Browse the repository at this point in the history
…onKill fails. (#1421) (#1424)

Signed-off-by: stack <stack@apache.org>
  • Loading branch information
huaxiangsun committed Apr 3, 2020
1 parent 5f8dea5 commit 0893ac3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -41,7 +41,6 @@
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.JVMClusterUtil.RegionServerThread;
import org.apache.hadoop.hbase.util.ServerRegionReplicaUtil;
import org.apache.hadoop.hbase.util.Threads;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
Expand Down Expand Up @@ -235,9 +234,10 @@ public void testSecondaryRegionKill() throws Exception {
}
assertTrue(aborted);

Threads.sleep(5000);

HTU.verifyNumericRows(table, fam, 0, 1000, 1);
// It takes extra time for replica region is ready for read as during
// region open process, it needs to ask primary region to do a flush and replica region
// can open newly flushed hfiles to avoid data out-of-sync.
verifyNumericRowsWithTimeout(table, fam, 0, 1000, 1, 30000);
HTU.verifyNumericRows(table, fam, 0, 1000, 2);
}

Expand Down

0 comments on commit 0893ac3

Please sign in to comment.