From 2451c2c532e70766f8f1a045a1e3573dfebb8688 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Thu, 31 Oct 2019 09:40:39 +0800 Subject: [PATCH] HBASE-23231 Addendum remove redundant metrics.clear in ReplicationSource This is only a problem on master which was introduced when we merge sync replication feature branch back --- .../hbase/replication/regionserver/ReplicationSource.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java index 78edffaf471..683a9ab8b55 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java @@ -600,9 +600,6 @@ public class ReplicationSource implements ReplicationSourceInterface { if (this.replicationEndpoint != null) { this.replicationEndpoint.stop(); } - if (clearMetrics) { - metrics.clear(); - } if (join) { for (ReplicationSourceShipper worker : workers) { Threads.shutdown(worker, this.sleepForRetries);