Scott Marlow commented on Bug HHH-7910

What should happen on the exit check? Clear and attempt to "cleanly" return? Clear and throw a SessionException?

If the JTA transaction is propagated to another process and is rolled back on the remote process, the Hibernate afterCompletion will be called from a background thread. I am thinking that we should throw an exception for both the Reaper Thread case and the remote case as well. I wonder if we should save the thread name as a string and include it in the thrown exception so that we can more easily piece together what happened later (when people ask us questions about this).

I think that clear and throw a SessionException, is better in the exit check.

To anyone interested in this topic, please consider increasing the tx timeout setting.

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