[infinispan-issues] [JBoss JIRA] (ISPN-12031) PutMapCommand should only write to shared stores on the primary owners
Dan Berindei (Jira)
issues at jboss.org
Fri Jun 19 06:22:53 EDT 2020
Dan Berindei created ISPN-12031:
-----------------------------------
Summary: PutMapCommand should only write to shared stores on the primary owners
Key: ISPN-12031
URL: https://issues.redhat.com/browse/ISPN-12031
Project: Infinispan
Issue Type: Bug
Components: Core, Loaders and Stores
Affects Versions: 10.1.8.Final, 11.0.0.Final
Reporter: Dan Berindei
Fix For: 12.0.0.Final
{{DistCacheWriterInterceptor}} uses {{skipSharedStores()}} for single-key write commands and multi-key functional commands in order to write to shared stores only on the primary owner of the key. For {{PutMapCommand}} it uses {{PersistenceManagerImpl.writeMapCommand()}}, which does not distinguish between shared and non-shared stores.
In addition to being inefficient, this makes it possible for a backup owner to update the value in the shared store after the primary owner released the lock, potentially out of order with another write operation (especially if the other write operation is single-key, so it only writes to the shared store from the primary).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list