hibernate-test-case-templates icon indicating copy to clipboard operation
hibernate-test-case-templates copied to clipboard

HHH-12923 Hibernate is both logging and throwing the error: HHH000346:Error during managed flush

Open Vydruth opened this issue 6 years ago • 5 comments

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.

Vydruth avatar Aug 24 '18 19:08 Vydruth

If you have a replicating test case for a Hibernate issue, you need to either:

  1. Open a Jira issue and attach this test case
  2. Send a Pull Request to the Hibernate ORM project.

Thanks

vladmihalcea avatar Aug 24 '18 19:08 vladmihalcea

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?

Vydruth avatar Aug 24 '18 20:08 Vydruth

It's fine. The test case can be taken from here. It's important it's mentioned in Jira. Thanks.

vladmihalcea avatar Aug 24 '18 20:08 vladmihalcea

@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 avatar Jun 18 '20 13:06 charlesritchea

@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.

vladmihalcea avatar Jun 18 '20 14:06 vladmihalcea