From cd2a7ff1c0358407d37cc09e89a52d44b7b4036c Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Fri, 20 May 2022 15:10:42 -0700 Subject: [PATCH] HBASE-27051 TestReplicationSource.testReplicationSourceInitializingMetric is flaky (#4448) Signed-off-by: Wellington Chevreuil Signed-off-by: Viraj Jasani --- .../hbase/replication/regionserver/TestReplicationSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSource.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSource.java index 41a8e1fa5f1..a7a58425e2d 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSource.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSource.java @@ -571,9 +571,9 @@ public class TestReplicationSource { try { rs.startup(); assertTrue(rs.isSourceActive()); - Waiter.waitFor(conf, 1000, () -> rs.getSourceMetrics().getSourceInitializing() == 1); + Waiter.waitFor(conf, 10000, () -> rs.getSourceMetrics().getSourceInitializing() == 1); BadReplicationEndpoint.failing = false; - Waiter.waitFor(conf, 1000, () -> rs.getSourceMetrics().getSourceInitializing() == 0); + Waiter.waitFor(conf, 10000, () -> rs.getSourceMetrics().getSourceInitializing() == 0); } finally { rs.terminate("Done"); rss.stop("Done");