Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6667

Loop EIP doesn't honour copy option in some circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.0
    • 2.10.7, 2.11.2, 2.12.0
    • camel-core
    • Unknown

    Description

      Happens when the Async Routing Engine variant of the Loop logic kicks in, and there are more than two processors in the loop body, e.g.

      .loop(3)
        .to("activemq:queue:abc?exchangePattern=InOut")
        .to("activemq:queue:def?exchangePattern=InOut")
      .end()
      

      The wrong inflight Exchange is copied (instead of the original one), and since the implicit Pipeline has copied the OUT message from the 1st endpoint to the IN message, the original IN message is lost fully.

      Attachments

        Activity

          People

            raulvk Raúl Kripalani
            raulvk Raúl Kripalani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: