This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 6916632 Implement checkContainersAvailable flag
6916632 is described below
commit 6916632c4083521c217e600620ad7faf948ba23f
Author: remm <[email protected]>
AuthorDate: Fri Sep 11 15:54:57 2020 +0200
Implement checkContainersAvailable flag
---
java/org/apache/catalina/valves/HealthCheckValve.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/valves/HealthCheckValve.java
b/java/org/apache/catalina/valves/HealthCheckValve.java
index 5b75fd6..91b33e9 100644
--- a/java/org/apache/catalina/valves/HealthCheckValve.java
+++ b/java/org/apache/catalina/valves/HealthCheckValve.java
@@ -96,7 +96,7 @@ public class HealthCheckValve extends ValveBase {
context ? request.getRequestPathMB() :
request.getDecodedRequestURIMB();
if (urlMB.equals(path)) {
response.setContentType("application/json");
- if (isAvailable(getContainer())) {
+ if (!checkContainersAvailable || (checkContainersAvailable &&
isAvailable(getContainer()))) {
response.getOutputStream().print(UP);
} else {
response.setStatus(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]