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

Request counters may become negative for heavily loaded regions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.0
    • 0.94.0
    • None
    • None
    • Reviewed

    Description

      Requests counter showing negative count, example under 'Requests' column: -645470239

      Name	Region Server	Start Key	End Key	Requests
      usertable,user2037516127892189021,1326756873774.16833e4566d1daef109b8fdcd1f4b5a6. 	xxx.com:60030 	user2037516127892189021 	user2296868939942738705 	-645470239
      

      RegionLoad.readRequestsCount and RegionLoad.writeRequestsCount are of int type. Our Ops has been running lots of heavy load operation. RegionLoad.getRequestsCount() overflows int.MAX_VALUE. It is set to D986E7E1. In table.jsp, RegionLoad.getRequestsCount() is assigned to long type. D986E7E1 is converted to long FFFFFFFFD986E7E1 which is -645470239 in decimal.

      Suggested fix is to make readRequestsCount and writeRequestsCount long type.

      Attachments

        1. 5283.txt
          2 kB
          Ted Yu
        2. HBASE-5283.trunk.v1.patch
          3 kB
          Mubarak Seyed

        Activity

          People

            mubarakseyed Mubarak Seyed
            zhihyu@ebaysf.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: