Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2300 Versioned Transactional Cache issues
  3. ISPN-2721

Issue with conditional operations and verisioning

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 5.2.0.Final
    • None
    • None
    • None

      The problem:

      • repeatable read cache with write skew check enabled
      • a conditional operation (e.g. replace) executes and is not successful (e.g. because the value doesn't exist)
      • during the successful operation the entry is written to the container with a null version. (i.e. the previous version is erased). That is well bad!

      Suggested solution:

      • for such entries that were not modified (isChanged==false) the value should not be re-written to the container OR

      Attached is a unit test capturing the problem.

              rh-ee-galder Galder ZamarreƱo
              mircea.markus Mircea Markus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: