Horreum
Horreum copied to clipboard
Avoid loading entity into 2nd level cache so that it isn't considered…
… 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.
@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 ?
Code styling changes applied.
Please can we validate that the PR has fixed the root cause of the problem with a test?
@johnaohara certainly, I will look at substituting the manual test with a testcase.
@whitingjr is this still an issue in the current master branch?
this cannot be recreated using 0.13.0.