Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.0.0-alpha-1
-
None
-
Reviewed
Description
i found the value of metric numReigons in Regions is not correct.
the metric can not add or remove region correctly as region close or open.
the metric as follow:
"name" : "Hadoop:service=HBase,name=RegionServer,sub=Regions",
"numRegions" : 2,
after trouble shooting ,i found the reason is in MetricsRegionSourceImpl#MetricsRegionSourceImpl
agg.register(this);
...
hashCode = regionWrapper.getRegionHashCode();
when add the MetricsRegionSource to set ,but the hashCode has not yet initialized.
So, the setFromMap can not put or remove the object correctly.
it will be better like this :
hashCode = regionWrapper.getRegionHashCode();
agg.register(this);
Attachments
Attachments
Issue Links
- is broken by
-
HBASE-14278 Fix NPE that is showing up since HBASE-14274 went in
- Closed
- relates to
-
HBASE-18924 Backport HBASE-18568 (Correct metric of numRegions) to branch-1.2 and branch-1.3
- Resolved