[infinispan-issues] [JBoss JIRA] (ISPN-4559) Replace fails with cache loader
Dan Berindei (JIRA)
issues at jboss.org
Wed Jul 23 04:29:30 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987325#comment-12987325 ]
Dan Berindei commented on ISPN-4559:
------------------------------------
Seems like a problem with all conditional commands, not just {{ReplaceCommand}}: {{RemoveCommand(value != null)}}, {{PutKeyValueCommand(putIfAbsent == true)}}.
The entry is also not retrieved if the command has the {{IGNORE_RETURN_VALUES}} flag, which is not correct for conditional commands.
> Replace fails with cache loader
> -------------------------------
>
> Key: ISPN-4559
> URL: https://issues.jboss.org/browse/ISPN-4559
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Loaders and Stores
> Affects Versions: 7.0.0.Alpha5
> Reporter: Dennis Reed
> Assignee: Dan Berindei
>
> cache.replace(key, oldValue, newValue) compares the current value in the cache to oldValue, and if they differ it turns into a no-op.
> However, CacheLoaderInterceptor does not load entries for a ReplaceCommand.
> If the entry only exists in the loader and not in memory, this causes the replace to fail.
> CacheLoaderInterceptor must always load the value for a ReplaceCommand.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the infinispan-issues
mailing list