[Red Hat JIRA] (ISPN-12534) CacheConfigurationException message ISPN028021 should return that it is missing an annotation in the field
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12534?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12534:
-------------------------------------
Status: Open (was: New)
> CacheConfigurationException message ISPN028021 should return that it is missing an annotation in the field
> ----------------------------------------------------------------------------------------------------------
>
> Key: ISPN-12534
> URL: https://issues.redhat.com/browse/ISPN-12534
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Reporter: Diego Lovison
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: query.diff
>
>
> When creating a cache with an indexed entity with the wrong configuration. Infinispan is returning the wrong message.
> If the java class has the following content.
> {code:java}
> @Indexed
> @ProtoDoc("@Indexed")
> public static final class User {
> @ProtoField(number = 1)
> Long id;
> @ProtoField(number = 2)
> String name;
> }
> {code}
> When creating a cache, the server is returning
> {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}
> As you can see, the entity has the @Indexed annotation.
> What is missing is the @ProtoDoc annotation in the field, as the following
> {code:java}
> @Indexed
> @ProtoDoc("@Indexed")
> public static final class User {
> @ProtoDoc("@Field(index=Index.YES, analyze = Analyze.YES, store = Store.NO)")
> @ProtoField(number = 1)
> Long id;
> @ProtoField(number = 2)
> String name;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 4 months
[Red Hat JIRA] (ISPN-12533) Infinispan is registering Query interceptor when the client cache creation is invalid
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12533?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes edited comment on ISPN-12533 at 1/8/21 5:02 AM:
------------------------------------------------------------------
The query interceptor is registered whenever the cache is indexed, so this is not an issue. I tested with the sample provided,it fails, but if I fix the annotations, it works, without restarting the server.
was (Author: gustavonalle):
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)
3 years, 4 months
[Red Hat JIRA] (ISPN-12533) Infinispan is registering Query interceptor when the client cache creation is invalid
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12533?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes resolved ISPN-12533.
--------------------------------------
Resolution: Not a Bug
> 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)
3 years, 4 months
[Red Hat JIRA] (ISPN-12533) Infinispan is registering Query interceptor when the client cache creation is invalid
by Gustavo Fernandes (Jira)
[ 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)
3 years, 4 months
[Red Hat JIRA] (ISPN-12535) Fix WARN messages org.hibernate.search in the server
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12535?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12535:
-------------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/8967
Status: Pull Request Sent (was: Open)
> Fix WARN messages org.hibernate.search in the server
> ----------------------------------------------------
>
> Key: ISPN-12535
> URL: https://issues.redhat.com/browse/ISPN-12535
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Querying
> Affects Versions: 12.0.0.Dev07
> Reporter: Diego Lovison
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: query.diff
>
>
> When creating the caches using the attached test, we can see the following WARN messages in the server
>
> {noformat}
> 11:52:13,778 WARN (blocking-thread--p3-t1) [org.hibernate.search.engine.common.impl.IndexManagerBuildingStateHolder] HSEARCH000574: Using configuration property 'hibernate.search.default_backend' to set the name of the default backend to 'infinispan_backend'. This configuration property is deprecated and shouldn't be used anymore. Instead, do not assign a name your default backend and configure it using the 'hibernate.search.backend' prefix, e.g. hibernate.search.backend.type = elasticsearch.
> 11:52:13,857 WARN (blocking-thread--p3-t1) [org.hibernate.search.backend.lucene.impl.LuceneBackendFactory] HSEARCH000075: Configuration setting 'lucene_version' was not specified: using LATEST (currently '8.6.2'). Context: backend 'infinispan_backend'
> 11:52:14,428 WARN (blocking-thread--p3-t1) [org.hibernate.search.engine.cfg.impl.EngineConfigurationUtils] HSEARCH000585: Using configuration property 'index_defaults.indexing.queue_count'. The prefix 'index_defaults' is deprecated and its support will ultimately be removed. Instead, you should just set defaults for index properties at the backend level. For example, set 'hibernate.search.backend.indexing.queue_size' instead of 'hibernate.search.backend.index_defaults.indexing.queue_size'.
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 4 months
[Red Hat JIRA] (ISPN-12535) Fix WARN messages org.hibernate.search in the server
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12535?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12535:
-------------------------------------
Status: Open (was: New)
> Fix WARN messages org.hibernate.search in the server
> ----------------------------------------------------
>
> Key: ISPN-12535
> URL: https://issues.redhat.com/browse/ISPN-12535
> Project: Infinispan
> Issue Type: Enhancement
> Components: Remote Querying
> Affects Versions: 12.0.0.Dev07
> Reporter: Diego Lovison
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: query.diff
>
>
> When creating the caches using the attached test, we can see the following WARN messages in the server
>
> {noformat}
> 11:52:13,778 WARN (blocking-thread--p3-t1) [org.hibernate.search.engine.common.impl.IndexManagerBuildingStateHolder] HSEARCH000574: Using configuration property 'hibernate.search.default_backend' to set the name of the default backend to 'infinispan_backend'. This configuration property is deprecated and shouldn't be used anymore. Instead, do not assign a name your default backend and configure it using the 'hibernate.search.backend' prefix, e.g. hibernate.search.backend.type = elasticsearch.
> 11:52:13,857 WARN (blocking-thread--p3-t1) [org.hibernate.search.backend.lucene.impl.LuceneBackendFactory] HSEARCH000075: Configuration setting 'lucene_version' was not specified: using LATEST (currently '8.6.2'). Context: backend 'infinispan_backend'
> 11:52:14,428 WARN (blocking-thread--p3-t1) [org.hibernate.search.engine.cfg.impl.EngineConfigurationUtils] HSEARCH000585: Using configuration property 'index_defaults.indexing.queue_count'. The prefix 'index_defaults' is deprecated and its support will ultimately be removed. Instead, you should just set defaults for index properties at the backend level. For example, set 'hibernate.search.backend.indexing.queue_size' instead of 'hibernate.search.backend.index_defaults.indexing.queue_size'.
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 4 months