From c4049ec68008d7ba437ab189bd805ac398f60f87 Mon Sep 17 00:00:00 2001 From: wenwj0 <36262341+wenwj0@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:23:27 +0800 Subject: [PATCH] Revert "HBASE-27051 TestReplicationSource.testReplicationSourceInitializingMetric is flaky (#4448)" This reverts commit ca67420e078f94367978c9585660c7422ce0295e. --- .../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 a79179307f54..78c2852e67be 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 void testReplicationSourceInitializingMetric() throws IOException { try { rs.startup(); assertTrue(rs.isSourceActive()); - Waiter.waitFor(conf, 10000, () -> rs.getSourceMetrics().getSourceInitializing() == 1); + Waiter.waitFor(conf, 1000, () -> rs.getSourceMetrics().getSourceInitializing() == 1); BadReplicationEndpoint.failing = false; - Waiter.waitFor(conf, 10000, () -> rs.getSourceMetrics().getSourceInitializing() == 0); + Waiter.waitFor(conf, 1000, () -> rs.getSourceMetrics().getSourceInitializing() == 0); } finally { rs.terminate("Done"); rss.stop("Done");