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.git
The following commit(s) were added to refs/heads/main by this push: new 194527cad2c Support SpoolRules in doStart (#18426) 194527cad2c is described below commit 194527cad2cbb232061fecf71f5c0c13a3fc8cb9 Author: Prasanth Rao <uvce.prasa...@gmail.com> AuthorDate: Fri Jun 20 16:59:59 2025 +0530 Support SpoolRules in doStart (#18426) --- .../java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java index 9a436d00f21..4d08955e1aa 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultStreamCachingStrategy.java @@ -407,7 +407,7 @@ public class DefaultStreamCachingStrategy extends ServiceSupport implements Came } // if we can overflow to disk then make sure directory exists / is created - if (spoolEnabled && (spoolThreshold > 0 || spoolUsedHeapMemoryThreshold > 0)) { + if (spoolEnabled && (spoolThreshold > 0 || spoolUsedHeapMemoryThreshold > 0 || !spoolRules.isEmpty())) { if (spoolDirectory == null && spoolDirectoryName == null) { throw new IllegalArgumentException("SpoolDirectory must be configured when using SpoolThreshold > 0"); }