Open henri-tremblay opened 7 years ago
No need to actually register a listener. The code was modified accordingly. And one of the problems (which was more a question) removed.
@henri-tremblay @myronkscott @ljacomet : is it the right place for this issue ?
What do you mean? It shouldn't be platform?
@mathieucarbou Yes. It is the HealthCheckEntity
These are tests made following the suggestion of using
HealthChecker
to monitor the connection. It partially works but the following problems were identified. They are particularly important for integration tests and batch applications.Also, it seems impossible to have a sane application without
HealthChecker
. It should be documented as a mandatory system or be launched under the hood. And it should be an entity installed by default.Here are the flaws encountered:
isClosed
method or at leastclose
should be reentrantHealthChecker
should import SLF4J. It needs it to runHealthChecker
entity, it get stuck. This can be really frequent during testingHealthChecker
entity is not by default in the kit. So it needs some Maven magic to work during testingHealthChecker
The test code (the map can be replaced by any other entity):