You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2024/09/06 08:41:27 UTC

(hbase) branch branch-2.5 updated: HBASE-28669 After one RegionServer restarts, another RegionServer leaks a connection to ZooKeeper (#6207)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 305a71a38ff HBASE-28669 After one RegionServer restarts, another RegionServer leaks a connection to ZooKeeper (#6207)
305a71a38ff is described below

commit 305a71a38ff1ff71b00e73560e4b9270337edf1c
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Fri Sep 6 16:23:07 2024 +0800

    HBASE-28669 After one RegionServer restarts, another RegionServer leaks a connection to ZooKeeper (#6207)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
    Co-authored-by: rodenli <ro...@tencent.com>
    (cherry picked from commit 4da88803f33039f06013ad91f7daf97982ecd938)
---
 .../hbase/replication/regionserver/RecoveredReplicationSource.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RecoveredReplicationSource.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RecoveredReplicationSource.java
index b615eed7d53..3dd2ead54a6 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RecoveredReplicationSource.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/RecoveredReplicationSource.java
@@ -149,6 +149,9 @@ public class RecoveredReplicationSource extends ReplicationSource {
       boolean allTasksDone = workerThreads.values().stream().allMatch(w -> w.isFinished());
       if (allTasksDone) {
         this.getSourceMetrics().clear();
+        if (this.getReplicationEndpoint() != null) {
+          this.getReplicationEndpoint().stop();
+        }
         manager.removeRecoveredSource(this);
         LOG.info("Finished recovering queue {} with the following stats: {}", queueId, getStats());
       }