Anna Manukyan created ISPN-2783:
-----------------------------------
Summary: Query on Invalidation cache fails in case of
non-InfinispanDirectoryProvider
Key: ISPN-2783
URL:
https://issues.jboss.org/browse/ISPN-2783
Project: Infinispan
Issue Type: Bug
Components: Querying
Reporter: Anna Manukyan
Assignee: Sanne Grinovero
Assume that node1 contains entries, node2 doesn't. And assume, that the cache on both
nodes is configured as:
{code}
ConfigurationBuilder cacheCfg =
getDefaultClusteredCacheConfig(CacheMode.INVALIDATION_SYNC, false);
cacheCfg.indexing()
.enable()
.indexLocalOnly(true)
.addProperty("default.directory_provider", "ram")
.addProperty("lucene_version", "LUCENE_CURRENT") ;
List<Cache<String, Person>> caches = createClusteredCaches(2, cacheCfg);
{code}
If I'm running the query on node1, then the query proceeds properly.
If I'm running the query on node2, then I'm getting the following exception:
{code}
org.hibernate.search.SearchException: There are no mapped entities. Don't forget to
add @Indexed to at least one class.
at
org.hibernate.search.query.engine.impl.HSQueryImpl.buildSearcher(HSQueryImpl.java:534)
at
org.hibernate.search.query.engine.impl.HSQueryImpl.buildSearcher(HSQueryImpl.java:511)
at
org.hibernate.search.query.engine.impl.HSQueryImpl.queryEntityInfos(HSQueryImpl.java:249)
at org.infinispan.query.impl.CacheQueryImpl.list(CacheQueryImpl.java:170)
at
org.infinispan.query.blackbox.ClusteredInvalidationCacheTest.testSimple(ClusteredInvalidationCacheTest.java:119)
{code}
You can find the test attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira