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

   ## Description
   
   Fixes [CAMEL-27291](https://issues.apache.org/jira/browse/CAMEL-27291): 
flaky `KuduClientAutowiredTest`.
   
   ### Analysis
   
   - The test execution time jump (from under 3 seconds to about 30 seconds 
since 16 November) comes from CAMEL-23493 (#29834), which migrated the 
camel-kudu tests to Testcontainers. Before, most Kudu tests were silently 
skipped through `Assumptions`. Now each test class starts a Kudu master and a 
tablet server (about 20 seconds), which is expected.
   - The failure is `CreateTable` retrying for 30 seconds against the master 
(`Connection refused`, `Master config has no leader`, 
`TimeoutTracker(timeout=30000)`).
   - `IntegrationKuduConfiguration` only waits for the master and tablet server 
RPC ports to be listening (`Wait.forListeningPort()`). A listening port does 
not mean the cluster is usable: the master must have elected itself leader and 
the tablet server must have registered. A test running too early burns the 
whole client timeout.
   
   ### Change
   
   In `IntegrationKuduConfiguration`, once the client is built, wait 
(Awaitility, explicit `atMost(60, SECONDS)`) until 
`KuduClient.listTabletServers()` reports at least one registered tablet server. 
Test-only change, no production code touched.
   
   ### Validation
   
   - `mvn test` in `components/camel-kudu`: 24 tests, 0 failures, 0 errors, 0 
skipped (the Kudu containers were run with podman).
   - The failure could not be reproduced locally, so the fix is based on the 
analysis of the stack trace and the cluster startup logs, not on a before/after 
reproduction.
   - Formatting applied with `mvn formatter:format impsort:sort`.
   
   ### Target
   
   - [x] I checked that the commit is targeting the correct branch (`main`)
   - [x] I checked that a JIRA issue exists (CAMEL-27291)
   - [x] Test-only change, no documentation or upgrade guide impact
   
   _Bob (IBM Bob 2.2.1) on behalf of 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