-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29038 Fix NPE in processRS.jsp due to missing MBean value #6556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| <td><%= (long)JSONMetricUtil.getValueFromMBean(rsMetrics, "pauseWarnThresholdExceeded") | ||
| + (long)JSONMetricUtil.getValueFromMBean(rsMetrics, "pauseInfoThresholdExceeded") %></td> | ||
| <td><%= pauseWarnThresholdExceeded != null && pauseInfoThresholdExceeded != null ? | ||
| (long)pauseWarnThresholdExceeded + (long)pauseInfoThresholdExceeded : -1 %></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to display 0 if it's null? I'm not sure, maybe we can hear other people's opinions?
<th>JvmPauseMonitor Count </th> , Can you also remove this space in line65?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to replace with whatever is preferred. How about the string "unknown"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the value to 0 when the metrics are null. And fixed the spacing on line 65.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no more questions. let's wait for others to review.
399cba5 to
7cabaf1
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
…he#6556) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
…he#6556) Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit c9f7dad)
No description provided.