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

With optimistic TX, conditional commands may wrongly succeed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 6.0.0.CR1
    • Core
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: