Issue Type: Bug Bug
Affects Versions: 4.2.0.Final
Assignee: Unassigned
Created: 22/Apr/13 5:07 AM
Description:

It seems like the intermittent failure in UpgradeLockTest is caused by this finally block, I'm suggesting this fix:

finally {
         em2.getTransaction().commit();
         em2.close();
         latch.countDown();	// signal that tx2 is committed
}

I think, we should close em2 before we send the signal, because sometimes em2 appears to be opened after the test completion -> releaseUnclosedEntityManagers() is invoked, but in the meantime em2 is closed in the finally block in another thread.

see HHH-5222 for more details.

Project: Hibernate ORM
Priority: Minor Minor
Reporter: Zbyněk Roubalík
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira