HBASE-25195 [branch-1] getNumOpenConnections is not effective (#2557)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Reid Chan 2020-10-19 10:54:15 +08:00 committed by GitHub
parent e06695112a
commit d3ac3420e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,10 +65,10 @@ public class MetricsHBaseServerWrapperImpl implements MetricsHBaseServerWrapper
@Override @Override
public int getNumOpenConnections() { public int getNumOpenConnections() {
if (!isServerStarted() || this.server.connectionList == null) { if (!isServerStarted()) {
return 0; return 0;
} }
return server.connectionList.size(); return server.numConnections;
} }
@Override @Override