Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21610

numOpenConnections metric is set to -1 when zero server channel exist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.0.3
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.2, 2.0.4
    • Component/s: metrics
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In NettyRpcServer, numOpenConnections metric is set to -1 when zero server channel exist.

      
      @Override
       public int getNumOpenConnections() {
       // allChannels also contains the server channel, so exclude that from the count.
       return allChannels.size() - 1;
       }
      
      

       

       We should not decrease the channel size by 1 when zero server channel exist.

        Attachments

        1. HBASE-21610.patch
          1 kB
          Pankaj Kumar
        2. HBASE-21610.patch
          1 kB
          Pankaj Kumar
        3. HBASE-21610.patch
          1 kB
          Michael Stack
        4. HBASE-21610.patch
          1 kB
          Michael Stack
        5. HBASE-21610.patch
          1 kB
          Michael Stack

          Activity

            People

            • Assignee:
              pankaj2461 Pankaj Kumar
              Reporter:
              pankaj2461 Pankaj Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: