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
This commit is contained in:
Duo Zhang 2019-10-31 09:40:39 +08:00
parent 3152d9981b
commit 2451c2c532
1 changed files with 0 additions and 3 deletions

View File

@ -600,9 +600,6 @@ public class ReplicationSource implements ReplicationSourceInterface {
if (this.replicationEndpoint != null) { if (this.replicationEndpoint != null) {
this.replicationEndpoint.stop(); this.replicationEndpoint.stop();
} }
if (clearMetrics) {
metrics.clear();
}
if (join) { if (join) {
for (ReplicationSourceShipper worker : workers) { for (ReplicationSourceShipper worker : workers) {
Threads.shutdown(worker, this.sleepForRetries); Threads.shutdown(worker, this.sleepForRetries);