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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.1, 2.0.3
    • 3.0.0-alpha-1, 2.2.0, 2.1.2, 2.0.4
    • metrics
    • None
    • 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

            pankaj2461 Pankaj Kumar
            pankaj2461 Pankaj Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: