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

Explicitly disallow concurrent operations in the same transaction

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.14.Final, 10.0.0.Final
    • Core
    • None

      Invoking multiple cache operations in parallel in the same transaction is inherently dangerous, especially when they touch the same keys (e.g. if one of them is a bulk operation).

      Invoking multiple cache operations in parallel became much more easier when we added asynchronous operations, and while we "know" it's not ok to access the same transaction in parallel, there is no explicit guard against it.

      AbstractCacheTransaction.lookedUpEntries is a HashMap, which will sometimes throw a ConcurrentModificationException, but most of the time the exception is something completely unrelated, making the problem even harder to trace back to its cause (e.g. ISPN-10239).

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

                Created:
                Updated:
                Resolved:
                Archived: