Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
MetricsHBaseServerSourceFactory#createContextName has wrong conditions.
It checks serverName contains "HMaster" or "HRegion".
MetricsHBaseServerSourceFactory.java
... protected static String createContextName(String serverName) { if (serverName.contains("HMaster")) { return "Master"; } else if (serverName.contains("HRegion")) { return "RegionServer"; } return "IPC"; } ...
But, passed serverName actually contains "master" or "regionserver" by HMaster#getProcessName and HRegionServer#getProcessName.
HMaster.java
... // MASTER is name of the webapp and the attribute name used stuffing this //instance into web context. public static final String MASTER = "master"; ... protected String getProcessName() { return MASTER; } ...
HRegionServer.java
... /** region server process name */ public static final String REGIONSERVER = "regionserver"; ... protected String getProcessName() { return REGIONSERVER; } ...
Attachments
Attachments
Issue Links
- is part of
-
HBASE-12328 Need to separate JvmMetrics for Master and RegionServer
- Closed