Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5840

Camel Java DSL multicast issue when using AggregationStrategy with shareUnitOfWork.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Camel
    • None
    • % %
    • Hide
      • Unzip the attachement rhcase-multicast-shareunitofwork.zip
      • Run junit test-case MulticastShareUnitOfWorkRouteBuilderTest.
      • Result is displayed with screenshot.
      • It is expected that testcase with shareUnitOfWork should also pass.
      Show
      Unzip the attachement rhcase-multicast-shareunitofwork.zip Run junit test-case MulticastShareUnitOfWorkRouteBuilderTest. Result is displayed with screenshot. It is expected that testcase with shareUnitOfWork should also pass.

      When multicast is used with aggregration-strategy and shareUnitOfWork than junit test-cases are not able to pass. While if shareUnitOfWork is not used than all test pass.
      Output observed when using shareUnitOfWork is:

      The failures superficially appear to indicate that:
      a) there is an extra call to aggregate adding a duplicate of the first result, see testShared_Grouped
      b) onCompletion gets called twice, see testShared_Instrumented
      c) the duplicate onCompletion calls probably explain the failure of testShared_Simple (given how AbstractListAggregationStrategy is implemented)

      See the attached JUnit test case:
      a) all the testUnshared_* cases pass
      b) all the testShared_* cases unexpectedly fail

            acosenti Andrea Cosentino
            rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: