Hello, Thanks for reporting this issue. You are correct, if completeAllOnStop and completionInterval are set, the expectation is that the aggregation will complete on stop (due to completionInterval).
I have a PR for this https://github.com/apache/camel/pull/19813 Can you open a JIRA issue? https://issues.apache.org/jira/projects/CAMEL Otherwise I'll open one. Thanks, Federico Il giorno mar 4 nov 2025 alle ore 16:34 Bedürftig, Arne <[email protected]> ha scritto: > Hello > > I am working with Apache Camel 4.14.1. I have a direct input and I am > using a GroupedBodyAggregationStrategy and two different aggregateKeys. > > .aggregate(new GroupedBodyAggregationStrategy()) > .simple("${in.header.aggregateKey}“) > .completionSize(10) > .completionInterval(5000) > .completeAllOnStop() > > My observation is that the aggregate will not complete on shutdown (if I > don’t reach the completionSize). My camel.main.shutdown-timeout property is > 5x the completionInterval. If I swap to completionTimeout it works, but > that might not suit my use-case. I am also aware of forceCompletionOnStop > and that will mitigate the issue, but I am not sure if this should be used > as a default. > > I am I missing some configuration for the completionInterval to work or am > I using it wrong? > > Thank you in advance, > Arne > -- > > > ------------------------------------------------------------------------------ > Informationen (einschließlich Pflichtangaben und Datenschutzerklärungen) > zu einzelnen, innerhalb der EU tätigen Gesellschaften und > Zweigniederlassungen der CITTI-Gruppe finden Sie unter > http://www.citti.de/html/pflichtangaben.html. Diese E-Mail enthält > vertrauliche und/ oder rechtlich geschützte Informationen. Wenn Sie nicht > der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist > nicht gestattet. > > Please refer to http://www.citti.de/html/pflichtangaben.html for > information (including mandatory corporate particulars and data protection > declarations) on selected CITTI branches and group companies registered or > incorporated in the European Union. This e-mail may contain confidential > and/or privileged information. If you are not the intended recipient (or > have received this e-mail in error) please notify the sender immediately > and delete this e-mail. Any unauthorized copying, disclosure or > distribution of the material in this e-mail is strictly forbidden. > > ------------------------------------------------------------------------------ >
