See hhh5032-2.patch attached to
http://pastie.org/2911301 shows the error that we throw when failing to upgrade from a READ lock to a OPTIMISTIC_FORCE_INCREMENT.
javax.persistence.OptimisticLockException caused by the org.hibernate.StaleObjectStateException (best of both worlds
Strong, what does the above error have to do with the change?
I agree that we should fix the other failures, like but
But, the upgrade test appears to be passing:
Also, the mysql test didn't have failures.
The Oracle failures should be reported with a new jira, I think.
I'll close this jira and if you agree, can you create a new jira for the failures that you are concerned with.
don't know why it failed and now passes, but yes, let's close this
I've found out what's the problem with failing test, this finally block should be like this:
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.
Improving the test, with the above change, sounds good to me, as long as no new failures are introduced.