HBASE-25195 [branch-1] getNumOpenConnections is not effective (#2557)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
e06695112a
commit
d3ac3420e5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue