Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17064 Investigate causes of flakes in camel unit tests
  3. CAMEL-17179

XXXParallelWithAggregationStrategyThrowingExceptionTest often fail

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.13.0
    • None
    • came-core
    • 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

          Activity

            People

              Unassigned Unassigned
              klease78 Karen Lease
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: