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 cfe52c2e08f CAMEL-23615: ErrorRegistry - disable TTL by default (#1798)
cfe52c2e08f is described below
commit cfe52c2e08fc228a913effda84a9218541c78cc2
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 27 21:54:31 2026 +0200
CAMEL-23615: ErrorRegistry - disable TTL by default (#1798)
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 <[email protected]>
---
core/camel-spring-boot/src/main/docs/spring-boot.json | 4 ++--
.../errorregistry/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