runtime icon indicating copy to clipboard operation
runtime copied to clipboard

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

Open Hooghof opened this issue 1 year ago • 2 comments

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

Hooghof avatar Jun 07 '24 07:06 Hooghof

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 avatar Jun 07 '24 13:06 skin27

This should be solved in the next Camel version:

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

skin27 avatar Jun 13 '24 13:06 skin27

4.7.0 came out yesterday. Assimbly is updated an can be deployed to test.

skin27 avatar Jul 15 '24 07:07 skin27