apupier opened a new pull request, #30342:
URL: https://github.com/apache/camel/pull/30342

   # Description
   
   Fixes the flakiness (~4%) of `KafkaConsumerGroupInstanceIdIT`: 
[CAMEL-27157](https://issues.apache.org/jira/browse/CAMEL-27157)
   
   The test adds the route and immediately polls `describeConsumerGroups`. The 
consumer group does not exist on the broker until the first consumer has joined 
it, so the call fails with `GroupIdNotFoundException` (wrapped in an 
`ExecutionException`). Awaitility's `untilAsserted` only retries on 
`AssertionError`, so the first poll that lost the race failed the test.
   
   The fix adds `.ignoreException(ExecutionException.class)` to the `await()`, 
so polling continues until the group exists and all static members have joined. 
It is still bounded by the 60 seconds `atMost`, and the assertion is unchanged.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   _Test-only change. Not run: the IT needs Kafka via Testcontainers; the 
module formatting and test compilation pass._
   
   ---
   _Bob (IBM Bob 2.2.1) on behalf of Aurélien Pupier (apupier)_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to