This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 5605c0c7afb CAMEL-20244: camel-core - Supervising route controller 
should default be DOWN during restarting and exhaust phase
5605c0c7afb is described below

commit 5605c0c7afbca3185488bbc3da5a2b4683b2e414
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon May 20 09:16:03 2024 +0200

    CAMEL-20244: camel-core - Supervising route controller should default be 
DOWN during restarting and exhaust phase
---
 core/camel-spring-boot/src/main/docs/spring-boot.json    |  8 ++++----
 .../SupervisingRouteControllerConfiguration.java         | 16 ++++++++--------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json 
b/core/camel-spring-boot/src/main/docs/spring-boot.json
index 1d80c91afb2..fed2f806fc5 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -1299,16 +1299,16 @@
     {
       "name": "camel.routecontroller.unhealthy-on-exhausted",
       "type": "java.lang.Boolean",
-      "description": "Whether to mark the route as unhealthy (down) when all 
restarting attempts (backoff) have failed and the route is not successfully 
started and the route manager is giving up. Setting this to true allows health 
checks to know about this and can report the Camel application as DOWN. The 
default is false.",
+      "description": "Whether to mark the route as unhealthy (down) when all 
restarting attempts (backoff) have failed and the route is not successfully 
started and the route manager is giving up. If setting this to false will make 
health checks ignore this problem and allow to report the Camel application as 
UP.",
       "sourceType": 
"org.apache.camel.spring.boot.routecontroller.SupervisingRouteControllerConfiguration",
-      "defaultValue": false
+      "defaultValue": true
     },
     {
       "name": "camel.routecontroller.unhealthy-on-restarting",
       "type": "java.lang.Boolean",
-      "description": "Whether to mark the route as unhealthy (down) when the 
route failed to initially start, and is being controlled for restarting 
(backoff). Setting this to true allows health checks to know about this and can 
report the Camel application as DOWN. The default is false.",
+      "description": "Whether to mark the route as unhealthy (down) when the 
route failed to initially start, and is being controlled for restarting 
(backoff). If setting this to false will make health checks ignore this problem 
and allow to report the Camel application as UP.",
       "sourceType": 
"org.apache.camel.spring.boot.routecontroller.SupervisingRouteControllerConfiguration",
-      "defaultValue": false
+      "defaultValue": true
     },
     {
       "name": "camel.routetemplate.config",
diff --git 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/routecontroller/SupervisingRouteControllerConfiguration.java
 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/routecontroller/SupervisingRouteControllerConfiguration.java
index bc7b4e48c44..14269d03cdd 100644
--- 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/routecontroller/SupervisingRouteControllerConfiguration.java
+++ 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/routecontroller/SupervisingRouteControllerConfiguration.java
@@ -101,21 +101,21 @@ public class SupervisingRouteControllerConfiguration {
      * Whether to mark the route as unhealthy (down) when all restarting 
attempts (backoff) have failed and the route is
      * not successfully started and the route manager is giving up.
      *
-     * Setting this to true allows health checks to know about this and can 
report the Camel application as DOWN.
-     *
-     * The default is false.
+     * If setting this to false will make health checks ignore this problem 
and allow to report the Camel application as
+     * UP.
      */
-    private boolean unhealthyOnExhausted;
+    @Metadata(label = "advanced", defaultValue = "true")
+    private boolean unhealthyOnExhausted = true;
 
     /**
      * Whether to mark the route as unhealthy (down) when the route failed to 
initially start, and is being controlled
      * for restarting (backoff).
      *
-     * Setting this to true allows health checks to know about this and can 
report the Camel application as DOWN.
-     *
-     * The default is false.
+     * If setting this to false will make health checks ignore this problem 
and allow to report the Camel application as
+     * UP.
      */
-    private boolean unhealthyOnRestarting;
+    @Metadata(label = "advanced", defaultValue = "true")
+    private boolean unhealthyOnRestarting = true;
 
     public boolean isEnabled() {
         return enabled;

Reply via email to