[ 
https://issues.apache.org/jira/browse/CAMEL-24903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118356#comment-18118356
 ] 

Guillaume Nodet commented on CAMEL-24903:
-----------------------------------------

This issue is being investigated by a coding agent (on behalf of gnodet).

Preliminary analysis confirms a real race condition: with 
concurrentConsumers=20, a late onExchangeDone callback can fire after 
setKeepOpen(true) is called, causing openCircuit() to suspend the consumer 
before the "MessageTrigger" message is processed, leading to the assertion 
failure on expectedMessageCount(6).

_Note: This comment was generated by an AI coding agent and requires manual 
verification._

> Fix flaky test ThrottlingExceptionRoutePolicyOpenViaConfigTest
> --------------------------------------------------------------
>
>                 Key: CAMEL-24903
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24903
>             Project: Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 4.23.0
>            Reporter: Aurélien Pupier
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> previosu attempt here [CAMEL-24035] which has nto changed the frequency at 
> which it is flaky.
> 7 times ffailing in last 90 days
> 58 times only flaky
> https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.timeZoneId=Europe%2FParis&tests.container=*ThrottlingExceptionRoutePolicyOpenViaConfigTest
> {noformat}
> java.lang.AssertionError: mock://result Received message count. Expected: <6> 
> but was: <5>
>       at 
> org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:2075)
>       at 
> org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:2010)
>       at 
> org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:498)
>       at 
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:476)
>       at 
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:466)
>       at 
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:289)
>       at 
> org.apache.camel.processor.throttle.ThrottlingExceptionRoutePolicyOpenViaConfigTest.testThrottlingRoutePolicyStartWithAlwaysOpenOffThenToggle(ThrottlingExceptionRoutePolicyOpenViaConfigTest.java:90)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to