[jboss-dev-forums] [Design of JBoss Transaction Services] - JBossAS transaction test regression
jhalliday
do-not-reply at jboss.com
Thu Dec 11 07:57:13 EST 2008
In pre-release testing of the new JBossTS 4.5, I see a regression for org.jboss.test.tm.test.MTTransactionManagerUnitTestCase.testCommitSameTxInTwoThreads
The test assumes that TransactioManager.commit() will barf if the transaction associated to the thread has already been committed. This is no longer the case.
The new JBossTS assumes that if you ask to commit the transaction and it's committed by the time the method returns then all is well. You'll get an warn in the logs but no exception.
I believe this is consistent with the JTA API specification and more user friendly, so I'm challenging the test rather than rolling back our modification.
Please let me know if you have any reason to believe this behaviour will break things other than the test and if so, on what grounds they rely on getting an exception.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195909#4195909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195909
More information about the jboss-dev-forums
mailing list