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

   ## Summary
   
   When Camel and a remote Infinispan server start concurrently (e.g., in 
Kubernetes), the server's internal `___protobuf_metadata` cache may not be 
ready yet, causing embedding store schema registration to fail immediately with 
`RemoteIllegalLifecycleStateException`.
   
   This PR adds retry logic around the schema registration call in 
`InfinispanRemoteManager.doStart()`:
   
   - Uses Camel's `ForegroundTask` with an `IterationTimeBoundedBudget` (1s 
interval, configurable max duration)
   - Adds a new `embeddingStoreSchemaRegistrationTimeout` configuration 
property (`Duration`, default `60s`) so users can tune the timeout
   - **Only `RemoteIllegalLifecycleStateException` triggers retries** — other 
errors (bad credentials, invalid schema, network issues) fail immediately 
without waiting
   
   ## Test plan
   
   - [ ] Verify existing Infinispan integration tests pass
   - [ ] Verify schema registration succeeds when server starts concurrently
   - [ ] Verify non-lifecycle errors (e.g., auth failure) still fail immediately
   
   _Claude Code on behalf of Guillaume Nodet_


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