HBASE-24570 connection#close throws NPE
This commit is contained in:
parent
96015e9669
commit
125544acfa
|
@ -2116,7 +2116,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();
|
||||
|
|
Loading…
Reference in New Issue