-
Notifications
You must be signed in to change notification settings - Fork 44
Health Check: Remember last status per category #1508
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
base: releases/23.2
Are you sure you want to change the base?
Health Check: Remember last status per category #1508
Conversation
[EDIT: Resolved with new commit] Thanks! Shouldn't we either have the timestamp per category in the map or invalidate the map on every put operation? Now one could query for category 1 and subsequently for a long time for category 2 and then get a stale answer for category 1. |
Can one of the admins verify this patch? |
@@ -169,12 +174,21 @@ else if (m_timeout > 0 && m_futureStart + m_timeout < System.currentTimeMillis() | |||
* @param result | |||
* status of last executed health check | |||
*/ | |||
protected void notifyHealthCheckResult(boolean result) { | |||
protected void notifyHealthCheckResult(boolean result, HealthCheckCategoryId category) { |
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 wouldn't change the signature (API) of this method in a minor build. Move this signature change to 25/2
} | ||
} | ||
|
||
private static final class Empty implements IHealthCheckCategory { |
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.
This class is not available as bean as it is marked "private static final". I think this is the intended behavior, maybe add a javadoc indicating that this is just a sentinel value and not a real category available for health checking.
db10a07
to
b710404
Compare
b710404
to
c7efe91
Compare
419786