[
https://issues.redhat.com/browse/ISPN-12533?page=com.atlassian.jira.plugi...
]
Gustavo Fernandes commented on ISPN-12533:
------------------------------------------
The query interceptor is registered whenever the cache is indexed, so this is not an
issue. I tested with the sample provided, and once the annotations are fixed, it works,
without restarting the server, so there is no issue.
Infinispan is registering Query interceptor when the client cache
creation is invalid
-------------------------------------------------------------------------------------
Key: ISPN-12533
URL:
https://issues.redhat.com/browse/ISPN-12533
Project: Infinispan
Issue Type: Bug
Components: Remote Querying
Affects Versions: 12.0.0.Dev07
Reporter: Diego Lovison
Assignee: Gustavo Fernandes
Priority: Major
Attachments: query.diff
Build the Infinispan and run {{server.sh}}
Run the client. It will fail because there is a missing configuration.
{noformat}
Exception in thread "main"
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=10
returned server error (status=0x85): org.infinispan.commons.CacheConfigurationException:
ISPN028021: The configured indexed-entity type 'black_friday.User' must be
indexed. Please annotate it with @Indexed or remove it from the configuration.
at
org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:335)
{noformat}
Check the server console ( or the server log )
{noformat}
the server is registering
11:46:34,952 INFO (blocking-thread--p3-t1) [org.infinispan.CONTAINER] ISPN014003:
Registering Query interceptor for cache user
{noformat}
Stop the server with ctrl + c
{noformat}
11:48:44,318 WARN (Thread-0) [org.infinispan.CONTAINER] ISPN000189: While stopping a
cache or cache manager, one of its components failed to stop
java.util.concurrent.CompletionException:
org.infinispan.commons.CacheConfigurationException: ISPN028021: The configured
indexed-entity type 'black_friday.User' must be indexed. Please annotate it with
@Indexed or remove it from the configuration.
at
java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:412)
at
java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2044)
at
org.infinispan.manager.DefaultCacheManager.terminate(DefaultCacheManager.java:780)
at
org.infinispan.manager.DefaultCacheManager.stopCaches(DefaultCacheManager.java:841)
at
org.infinispan.manager.DefaultCacheManager.internalStop(DefaultCacheManager.java:817)
at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:793)
at
org.infinispan.server.SecurityActions.lambda$stopCacheManager$2(SecurityActions.java:75)
at org.infinispan.security.Security.doPrivileged(Security.java:45)
at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:38)
at
org.infinispan.server.SecurityActions.stopCacheManager(SecurityActions.java:81)
at
java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608)
at org.infinispan.server.Server.localShutdown(Server.java:484)
at org.infinispan.server.Server.lambda$run$1(Server.java:410)
at
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at
java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at
java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at org.infinispan.server.DefaultExitHandler.exit(DefaultExitHandler.java:13)
at org.infinispan.server.ShutdownHook.run(ShutdownHook.java:16)
Caused by:
org.infinispan.commons.Cac^CheManager.internalGetCache(DefaultCacheManager.java:532)
at
org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:510)
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26)
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14)
{noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)