From d06c1890a5656d1c482ee3324663dc0ab90135fe Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Wed, 27 May 2026 21:14:53 +0200 Subject: [PATCH] CAMEL-23615: ErrorRegistry - disable TTL by default Align with apache/camel change - TTL default changed from 1 hour to 0 (disabled). Entries are retained based only on the maximum entries limit. Co-Authored-By: Claude Opus 4.6 --- core/camel-spring-boot/src/main/docs/spring-boot.json | 4 ++-- .../CamelErrorRegistryConfigurationProperties.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 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 cf17215f979..e4fa48dd92c 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -346,9 +346,9 @@ { "name": "camel.errorregistry.time-to-live-seconds", "type": "java.lang.Integer", - "description": "The time-to-live in seconds for error entries. Entries older than this are evicted.", + "description": "The time-to-live in seconds for error entries. Entries older than this are evicted. The default value is 0 (disabled).", "sourceType": "org.apache.camel.spring.boot.errorregistry.CamelErrorRegistryConfigurationProperties", - "defaultValue": 3600 + "defaultValue": 0 }, { "name": "camel.health.async-camel-health-check", diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/errorregistry/CamelErrorRegistryConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/errorregistry/CamelErrorRegistryConfigurationProperties.java index 147be9eb7c8..8126f56ef8a 100644 --- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/errorregistry/CamelErrorRegistryConfigurationProperties.java +++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/errorregistry/CamelErrorRegistryConfigurationProperties.java @@ -35,10 +35,11 @@ public class CamelErrorRegistryConfigurationProperties { private int maximumEntries = 100; /** - * The time-to-live in seconds for error entries. Entries older than this are evicted. + * The time-to-live in seconds for error entries. Entries older than this are evicted. The default value is 0 + * (disabled). */ - @Metadata(defaultValue = "3600") - private int timeToLiveSeconds = 3600; + @Metadata(defaultValue = "0") + private int timeToLiveSeconds; /** * To limit the message body to a maximum size in the captured error data. Use 0 or negative value to use unlimited