Hibernate TransactionSynch should rollback transaction on session.flush
exception
---------------------------------------------------------------------------------
Key: JBAS-1576
URL: http://jira.jboss.com/jira/browse/JBAS-1576
Project: JBoss Application Server
Type: Bug
Components: Hibernate service
Versions: JBossAS-4.0.1 SP1, JBossAS-4.0.1RC1, JBossAS-4.0.1 Final,
JBossAS-4.0.0 Final
Environment: jboss 4, hibernate 2.2
Reporter: Armin Haaf
Priority: Critical
org.jboss.hibernate.session.TransactionSynch only logs a error on session flush
in beforeCompletion:
try
{
log.trace("Flushing Session");
session.flush();
}
catch(Throwable t)
{
log.warn("Error flushing session");
}
This leads to inconsistent transactions. A transaction is commited, but should
be rollbacked on a session.flush problem. In my opinion it should throw a
RuntimeException to rollback the transaction.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development