[jboss-jira] [JBoss JIRA] (WFLY-5921) Locale cache set to simple cache automatically breaks map reduce
Paul Ferraro (JIRA)
issues at jboss.org
Mon Jan 4 09:14:00 EST 2016
[ https://issues.jboss.org/browse/WFLY-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144519#comment-13144519 ]
Paul Ferraro edited comment on WFLY-5921 at 1/4/16 9:13 AM:
------------------------------------------------------------
BTW - Distributed streams work fine (as normal java.util.stream) when using simple cache.
In general, I don't think it's a good idea for EAP7.x to rely on soon to be deprecated API - so I strongly encourage you to create a fork for EAP7 work.
However, looking at how you are using Infinispan in KeyCloak, it seems to me that you do not actually want to use a non-transactional cache. You should at least be using transaction mode="BATCH", that way individual cache operations work in auto-commit mode. This will also prevent the simple cache optimization from being auto-enabled in WF10.
If the above is satisfactory, please reclose.
was (Author: pferraro):
BTW - Distributed streams work fine (as normal java.util.stream) when using simple cache.
In general, I don't think it's a good idea for EAP7.x to rely on soon to be deprecated API - so I strongly encourage you to create a fork for EAP7 work.
However, looking at how you are using Infinispan in KeyCloak, it seems to me that you do not actually want to use a non-transactional cache. You should at least be using transaction mode="BATCH", that way individual cache operations work in auto-commit mode. This will also prevent the simple cache optimization from being auto-enabled in WF10.
> Locale cache set to simple cache automatically breaks map reduce
> ----------------------------------------------------------------
>
> Key: WFLY-5921
> URL: https://issues.jboss.org/browse/WFLY-5921
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 10.0.0.CR5
> Reporter: Stian Thorgersen
> Assignee: Paul Ferraro
> Priority: Critical
>
> We use the Infinispan subsystem to create/configure caches for Keycloak. In standalone mode Keycloak uses locale-caches, while in clustered mode we use a combination of invalidation caches and distributed caches. In both clustered and non-clustered mode we use map-reduce tasks to delete elements from the cache.
> This has worked just fine until the recent change in CR5 where locale-caches are now set to simple-caches (WFLY-5327). As the caches are now automatically set to simple-caches map-reduce is no longer available. There's also no way to prevent this.
> IMO the changes from WFLY-5327 should be reverted and instead a new simple-cache element should be added, or a simple-cache=true attribute added to the locale-cache element.
> As it stands this change prevents us from upgrading to CR5.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list