aaronbee commented on code in PR #6556:
URL: https://github.com/apache/hbase/pull/6556#discussion_r1896041049
##########
hbase-server/src/main/resources/hbase-webapps/regionserver/processRS.jsp:
##########
@@ -68,8 +70,8 @@ pageContext.setAttribute("pageTitle", "Process info for PID:
" + JSONMetricUtil.
<td><%= new Date(runtimeBean.getStartTime()) %></td>
<td><%= StringUtils.humanTimeDiff(runtimeBean.getUptime()) %></td>
<td><%= JSONMetricUtil.getProcessPID() %></td>
- <td><%= (long)JSONMetricUtil.getValueFromMBean(rsMetrics,
"pauseWarnThresholdExceeded")
- + (long)JSONMetricUtil.getValueFromMBean(rsMetrics,
"pauseInfoThresholdExceeded") %></td>
+ <td><%= pauseWarnThresholdExceeded != null &&
pauseInfoThresholdExceeded != null ?
+ (long)pauseWarnThresholdExceeded +
(long)pauseInfoThresholdExceeded : -1 %></td>
Review Comment:
Changed the value to 0 when the metrics are null. Add fixed the spacing on
line 65.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]