[Red Hat JIRA] (ISPN-12420) ConcurrentModificationException for EntryMergePolicyFactoryRegistry
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12420?page=com.atlassian.jira.plugi... ]
Dan Berindei commented on ISPN-12420:
-------------------------------------
The fact that the collection can be modified during cache startup is a problem in itself: if caches defined in infinispan.xml or persisted in caches.xml do not wait for custom entry merge policies to be deployed before starting, they may not be able to use the custom entry merge policy the user expects them to use.
Looks like all the caches and all the deployed merge policies use on the same {{DeployedMergePolicyFactory}}. But each {{CacheService}} calls {{mergePolicyRegistry.addMergePolicyFactory(this.dependencies.getDeployedMergePolicyRegistry())}} again, modifying the list in {{EntryMergePolicyFactoryRegistry}} while other caches are iterating over it.
I believe {{CacheService}} should not depend on {{DeployedMergePolicyFactoryService}}, instead {{CacheContainerResource}} should depend on {{DeployedMergePolicyFactoryService}} and register the {{DeployedMergePolicyFactory}}.
> ConcurrentModificationException for EntryMergePolicyFactoryRegistry
> -------------------------------------------------------------------
>
> Key: ISPN-12420
> URL: https://issues.redhat.com/browse/ISPN-12420
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Reporter: Wolf-Dieter Fink
> Priority: Major
>
> The EntryMergePolicyFactoryRegistry createInstance(...) method uses a synchronized collection but did not synchronize the iteration which is imperative from the Java specification, see https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html#sync...
>
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 6 months
[Red Hat JIRA] (ISPN-12218) Indexed caches with non-indexed entities query inconsistency
by Nistor Adrian (Jira)
[ https://issues.redhat.com/browse/ISPN-12218?page=com.atlassian.jira.plugi... ]
Nistor Adrian updated ISPN-12218:
---------------------------------
Labels: SearchNG (was: )
> Indexed caches with non-indexed entities query inconsistency
> ------------------------------------------------------------
>
> Key: ISPN-12218
> URL: https://issues.redhat.com/browse/ISPN-12218
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying, Remote Querying
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
> Labels: SearchNG
> Fix For: 12.0.0.Dev05
>
> Attachments: IndexedCacheNonIndexedQueryTest.java
>
>
> When a cache is indexed, but the protobuf entitiy is not:
> "FROM Entity" returns zero results
> "FROM Entity WHERE <predicate>" return results
> It appears in the first case the query goes to the index (that will be empty), but not in the second where it does a non-indexed query
> On a side note, if I configure a cache as indexed, but do not index any type in the protobuf, it returns {{ISPN014054: Trying to execute query from xyz, but no type is indexed on cache}}. This should be improved to mention the schema needs to be changed
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 6 months