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

   #### What type of PR is this?
   /kind bug
   
   #### Jira issue
   https://issues.apache.org/jira/browse/CAMEL-25344
   
   #### Community Guidelines
   https://camel.apache.org/community/contributing/
   
   #### Description
   
   `InfinispanRemoteQueryProducerIT` and `InfinispanRemoteQueryConsumerIT` both 
called
   `cacheContainer.administration().schemas().create()` in their 
`setupResources()` without any retry or wait mechanism.
   
   Under `-T1C` parallel builds, Docker contention makes Infinispan slower to 
fully
   initialize its internal `___protobuf_metadata` cache. When that cache is not 
yet
   ready, the `schemas().create()` call fails with a `TransportException` 
(connection refused)
   or a `RemoteIllegalLifecycleStateException`, causing the tests to fail.
   
   **Root cause:** The parent class `InfinispanRemoteTestSupport` already uses 
a `ForegroundTask`
   retry loop for regular cache creation (`createCache()`), but the schema 
registration in the
   query ITs had no such retry.
   
   **Fix:** Add a `registerSchema(FileDescriptorSource)` method to 
`InfinispanRemoteQueryTestSupport`
   that wraps `cacheContainer.administration().schemas().create()` in a 
`ForegroundTask` retry
   loop (up to 30 iterations, 1 second interval). Both query ITs are updated to 
call this method
   instead of the bare `schemas().create()`.
   
   This mirrors the existing retry patterns:
   - `InfinispanRemoteTestSupport.createCache()` (same module)
   - `LangChain4jEmbeddingsComponentInfinispanTargetIT.setupResources()` 
(CAMEL-23253, commit 80824e44d08)


-- 
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