Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.13.0
-
None
-
None
-
Unknown
Description
The unit tests in package org.apache.camel.issues:
- SplitterParallelWithAggregationStrategyThrowingExceptionTest
- MulticastParallelWithAggregationStrategyThrowingExceptionTest
- RecipientListParallelWithAggregationStrategyThrowingExceptionTest
often fail even after 3 tries. The tests assume that all threads to send messages have at least been scheduled before aggregate is called for the first time which stops the processing. But under heavy parallel processing, this frequently does not occur, causing the test to fail.
In fact, the test assumption seems incorrect; there is no guarantee that any multicast destination other than the one triggering the aggregation exception will be reached.
In addition, while examining the code, I found that the multicast option stopOnAggregateException has no effect. Whether or not it is used, an exception thrown in the aggregation strategy is always causes the processing to stop and the error handler to be triggered. See linked issue.
Attachments
Issue Links
- Testing discovered
-
CAMEL-17296 Multicast option stopOnAggregateException has no effect
- Resolved