Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12031

PutMapCommand should only write to shared stores on the primary owners

    Details

      Description

      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).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dan.berindei Dan Berindei
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: