Uploaded image for project: 'Hibernate ORM'
  1. HHH-10185

In nonstrict-read-write mode the remove may be not applied

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.0.5, 5.1.0
    • Component/s: hibernate-infinispan
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Under certain race conditions, the remove loads old version from cache and invalidates this version, but the remove fails because newer version was inserted in the meantime. This affects cached collections as these are only invalidated, the version is not incremented in cache and therefore a DB read may try to putFromLoad newer version concurrently with another invalidation.

      Since the SPI does not provide the proper version (and lockItem call for collections does not use version either), the solution has to fallback to timestamp-based comparison.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: