Horreum icon indicating copy to clipboard operation
Horreum copied to clipboard

Avoid loading entity into 2nd level cache so that it isn't considered…

Open whitingjr opened this issue 10 months ago • 4 comments

… stale by Hibernate which causes OptimisticLockException.

Fixes Issue

fixes #1616

Changes proposed

Check List (Check all the applicable boxes)

  • [x] My code follows the code style of this project.
  • [x] All new and existing tests passed.

whitingjr avatar Apr 19 '24 17:04 whitingjr

@johnaohara This change does fix the issue. I tested with production data dump and the error no longer occurs when beforehand it consistently occurred. Did you notice this jakarta.persistence.OptimisticLockException in the issue ?

whitingjr avatar May 07 '24 15:05 whitingjr

Code styling changes applied.

whitingjr avatar May 08 '24 08:05 whitingjr

Please can we validate that the PR has fixed the root cause of the problem with a test?

johnaohara avatar May 08 '24 10:05 johnaohara

@johnaohara certainly, I will look at substituting the manual test with a testcase.

whitingjr avatar May 08 '24 13:05 whitingjr

@whitingjr is this still an issue in the current master branch?

johnaohara avatar May 29 '24 10:05 johnaohara

this cannot be recreated using 0.13.0.

whitingjr avatar May 29 '24 15:05 whitingjr