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

Replication: The DELTA_WRITE flag should force a remote get during state transfer

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.10.Final
    • Fix Version/s: 5.2.13.Final
    • Component/s: None
    • Labels:
      None

      Description

      Same issue as ISPN-3184, but for repl caches in Infinispan 5.2.x.
      (ISPN-3184 only fixed dist caches, since repl uses the same code in 5.3+).

      AtomicHashMap and FineGrainedAtomicHashMap, as well as custom DeltaAware implementations, use PutKeyValueCommands with the DELTA_WRITE flag to execute incremental updates. These commands need the previous value of the entry in order to work.

      If a node is joining and it receives a PutKeyValueCommand with the DELTA_WRITE flag before it has received the value of the affected key, it should do a remote get to retrieve the previous value and apply the change on top of that value, just like we do for conditional commands. Not doing so leads to data loss.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ryanemerson Ryan Emerson
                  Reporter:
                  dereed Dennis Reed
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: