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

StaleStateException/OptimisticLockException doesn't cause infinispan 2nd level cache to invalidate

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.3.0.Final
    • Fix Version/s: None
    • Component/s: Hibernate Cache
    • Labels:
      None

      Description

      Migrated from HHH-12207

      If the hibernate 2nd level cache has a versioned entity which is less than the version in db, it will throw StaleDataException (expected), but at that point I expect hibernate to invalidate the cache so the next find will go to db to find correct version of entity. On our production, once hibernate has an old value, it just keeps throwing the exception until we manually clear the cache. EhCache seems to invalidate the cache as I would expect.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: