-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Starting an indexed cache without deploying the schemas breaks the cluster startup because Infinispan tries to analyze the schema by purging the segments that the node lost ownership of.
Stopping a node can cause the same exception.
Exception on topology change:
[ispn-server] 2024-04-03 15:20:20,569 ERROR (non-blocking-thread-C-p2-t2) [org.infinispan.topology.LocalTopologyManagerImpl] ISPN000452: Failed to update topology for cache UETRActionP2 java.util.concurrent.CompletionException: org.infinispan.commons.CacheConfigurationException: ISPN028022: The declared indexed type 'test' is not known. Please register its proto schema file first [ispn-server] at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) [ispn-server] at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) [ispn-server] at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) [ispn-server] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) [ispn-server] at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516) [ispn-server] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495) [ispn-server] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521) [ispn-server] at java.base/java.lang.Thread.run(Thread.java:1583) [ispn-server] Caused by: org.infinispan.commons.CacheConfigurationException: ISPN028022: The declared indexed type 'rest' is not known. Please register its proto schema file first [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.createMapping(LazySearchMapping.java:266) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.createMapping(LazySearchMapping.java:246) [ispn-server] at org.infinispan.query.remote.impl.util.LazyRef.get(LazyRef.java:23) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.mapping(LazySearchMapping.java:233) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.scopeAll(LazySearchMapping.java:72) [ispn-server] at org.infinispan.query.backend.QueryInterceptor.purgeIndex(QueryInterceptor.java:357) [ispn-server] at org.infinispan.query.backend.SegmentListener.lambda$topologyChanged$0(SegmentListener.java:65) [ispn-server] at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [ispn-server] ... 5 more [ispn-server]
Exception on stop:
[ispn-server] 2024-04-03 15:25:42,236 ERROR (Thread-0) [org.infinispan.factories.ComponentRegistry] ISPN000538: Error stopping module org.infinispan.query.impl.LifecycleManager:cache org.infinispan.commons.CacheConfigurationException: ISPN028022: The declared indexed type 'test' is not known. Please register its proto schema file first [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.createMapping(LazySearchMapping.java:266) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.createMapping(LazySearchMapping.java:246) [ispn-server] at org.infinispan.query.remote.impl.util.LazyRef.get(LazyRef.java:23) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.mapping(LazySearchMapping.java:233) [ispn-server] at org.infinispan.query.remote.impl.LazySearchMapping.close(LazySearchMapping.java:82) [ispn-server] at org.infinispan.query.impl.LifecycleManager.cacheStopping(LifecycleManager.java:408)