From 42a64f2a4d16bba121f7fd83cfe9ab0e11f0e441 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 78c2852e67b..a79179307f5 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");