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

PutMapCommand should only write to shared stores on the primary owners

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • 12.0.0.Final
    • 11.0.0.Final, 10.1.8.Final
    • Core, Loaders and Stores
    • None

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

              Unassigned Unassigned
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: