You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/05/14 19:18:37 UTC

[PR] CAMEL-23513: Fix completeAllOnStop() not completing aggregations with completionInterval() [camel]

gnodet opened a new pull request, #23235:
URL: https://github.com/apache/camel/pull/23235

   [CAMEL-23513](https://issues.apache.org/jira/browse/CAMEL-23513)
   
   ## Summary
   
   - Fix `completeAllOnStop()` not reliably completing in-flight aggregations when used with `completionInterval()`
   - `AggregateProcessor.prepareShutdown()` now also force-completes all groups when `completeAllOnStop` is set, not just when `forceCompletionOnStop` is set
   - Update the test to use a 60-second interval (instead of 1 second) so it deterministically validates force completion rather than relying on the interval timer to race against shutdown
   
   ## Root Cause
   
   `prepareShutdown()` only checked `forceCompletionOnStop` to trigger `doForceCompletionOnStop()`. With `completeAllOnStop`, the shutdown relied on the `AggregationIntervalTask` firing during the shutdown window — a race condition that caused intermittent failures.
   
   ## Test plan
   
   - [x] `AggregateCompleteAllOnStopWithIntervalTest` passes deterministically (20/20 runs)
   - [x] Full aggregator test suite (`org.apache.camel.processor.aggregator.*`) passes with no regressions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23513: Fix completeAllOnStop() not completing aggregations with completionInterval() [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23235:
URL: https://github.com/apache/camel/pull/23235#issuecomment-4454151734

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `core/camel-core-processor`
   - `core/camel-core`
   
   > :information_source: Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the `test-dependents` label to force testing all dependents.
   
   :warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
   
   - `core/camel-core`: 2 test(s) disabled on GitHub Actions
   
   <details><summary>Build reactor — dependencies compiled but only changed modules were tested (2 modules)</summary>
   
   - Camel :: Core
   - Camel :: Core Processor
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/25880535401)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23513: Fix completeAllOnStop() not completing aggregations with completionInterval() [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23235:
URL: https://github.com/apache/camel/pull/23235#issuecomment-4453982744

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23513: Fix completeAllOnStop() not completing aggregations with completionInterval() [camel]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #23235:
URL: https://github.com/apache/camel/pull/23235


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org