You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Pankaj Kumar (JIRA)" <ji...@apache.org> on 2018/12/17 19:59:00 UTC
[jira] [Created] (HBASE-21610) numOpenConnections metric is set to
-1 when zero server channel exist
Pankaj Kumar created HBASE-21610:
------------------------------------
Summary: numOpenConnections metric is set to -1 when zero server channel exist
Key: HBASE-21610
URL: https://issues.apache.org/jira/browse/HBASE-21610
Project: HBase
Issue Type: Bug
Components: metrics
Reporter: Pankaj Kumar
In NettyRpcServer, numOpenConnections metric is set to -1 when zero server channel exist.
{code}
@Override
public int getNumOpenConnections() {
// allChannels also contains the server channel, so exclude that from the count.
return allChannels.size() - 1;
}
{code}
We should not decrease the channel size by 1 when zero server channel exist.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)