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

With optimistic TX, conditional commands may wrongly succeed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 6.0.0.Final
    • Core
    • None

      Situation with optimistic TX, originator = entry's primary owner:

      1. The conditional check suceeds when the command is executed
      2. In TxDistributionInterceptor, ignorePreviousValue is set to true
      3. The command is then enlisted in the modifications list with the ignorePreviousValue set to true
      4. During the prepare/commit phase the command ignores the condition

      Result:
      Two commands, replace(key, A, B), replace(key, A, C) may both overwrite the entry (and the one committed later wins, actually overwriting B instead of A).

              mircea.markus Mircea Markus (Inactive)
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: