Guillaume Nodet created CAMEL-23255:
---------------------------------------

             Summary: Infinispan Remote component should retry schema 
registration on IllegalLifecycleStateException
                 Key: CAMEL-23255
                 URL: https://issues.apache.org/jira/browse/CAMEL-23255
             Project: Camel
          Issue Type: Improvement
          Components: camel-infinispan
            Reporter: Guillaume Nodet


The {{InfinispanRemoteManager.doStart()}} method calls 
{{EmbeddingStoreUtil.registerSchema()}} synchronously during route startup, 
which accesses the Infinispan {{___protobuf_metadata}} internal cache. If the 
Infinispan server is still initializing and this cache is not ready, the 
operation fails immediately with:

{code}
org.infinispan.commons.IllegalLifecycleStateException: ISPN005066: Cache 
'___protobuf_metadata' is not ready
{code}

The component should handle this gracefully, e.g., by retrying schema 
registration when {{IllegalLifecycleStateException}} is thrown, rather than 
failing the route startup immediately.

This was identified during the fix for CAMEL-23253, where the test was made 
more robust with a readiness check, but the component itself remains brittle 
against slow server initialization.

See PR #22265 for context.



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

Reply via email to