assimbly / runtime

Java & REST API's for creating and running integrations
Apache License 2.0
17 stars 3 forks source link

[Exchange]Exchange Pattern InOnly in asynchronous flow gives multiplied outputs sometimes #236

Open Hooghof opened 4 weeks ago

Hooghof commented 4 weeks ago

If call the test flow below a few times times after each other, one time the output is as expected, the other time the output is duplicated or multiplied.

Test flow Instance: next Tenant: Regression tests Flow: ExchangeInOnlyAsynchronous Postman test: ExchangeInOnly Asynchronous

skin27 commented 4 weeks ago

This can be reproduced with this small route:

<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
    <route id="1">
        <from uri="jetty:http://0.0.0.0:9001/test"/>
        <to uri="seda:2?exchangePattern=InOnly"/>
    </route>
    <route id="2">
        <from uri="seda:2"/>
        <setBody>
            <constant>Y</constant>
        </setBody>
    </route>
</routes>   

It's however unclear why this is the case. When changing the transport to Synchronous or Queues it works. There is no error in the logs. Asked about this on the Camel forum and put this on hold for now.

skin27 commented 3 weeks ago

This should be solved in the next Camel version:

https://issues.apache.org/jira/browse/CAMEL-20866