hibernate-test-case-templates
hibernate-test-case-templates copied to clipboard
HHH-12923 Hibernate is both logging and throwing the error: HHH000346:Error during managed flush
You can reproduce the issue by running "mvn clean install" or by just running the specific test under test-case-template-hibernate-orm5/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java in my code
In the console you will be able to see the error being both logged and thrown.
If you have a replicating test case for a Hibernate issue, you need to either:
- Open a Jira issue and attach this test case
- Send a Pull Request to the Hibernate ORM project.
Thanks
I have linked the PR to the JIRA: https://hibernate.atlassian.net/browse/HHH-12923.
Would you want me to just comment a link to my repo on that JIRA?
It's fine. The test case can be taken from here. It's important it's mentioned in Jira. Thanks.
@vladmihalcea can we get some movement on this, it's natural to use optimistic locking in a happy path scenario with a retry or ignore handler, so it's annoying having an always ERROR log in there
@charlesritchea I haven't been working for Red Hat since March 2019, so I have no idea whether the Hibernate ORM team considers integrating this or not. You should add a comment on the Jira issue or create a Pull Request that fixes the problem.