]
Dan Berindei updated ISPN-4559:
-------------------------------
Priority: Critical (was: Major)
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: Pedro Ruivo
Priority: Critical
Fix For: 7.0.0.Beta1
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.