You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2021/08/17 00:04:46 UTC
[hbase] branch branch-2.3 updated: HBASE-24570 connection#close
throws NPE
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new 77674b2 HBASE-24570 connection#close throws NPE
77674b2 is described below
commit 77674b2b9f39527c0cdde7bed854679272882bf3
Author: Bo Cui <cu...@163.com>
AuthorDate: Sat Jul 18 10:26:00 2020 +0800
HBASE-24570 connection#close throws NPE
---
.../java/org/apache/hadoop/hbase/client/ConnectionImplementation.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
index 4d2a41f..2b28642 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
@@ -2050,7 +2050,9 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
this.metrics.shutdown();
}
this.closed = true;
- registry.close();
+ if (this.registry != null) {
+ registry.close();
+ }
this.stubs.clear();
if (clusterStatusListener != null) {
clusterStatusListener.close();