[
https://jira.jboss.org/jira/browse/JBMESSAGING-1548?page=com.atlassian.ji...
]
Howard Gao commented on JBMESSAGING-1548:
-----------------------------------------
hi, rollback should be normal in transactions. If user rolls back the tx, or it is
one-phase commit, no prepare will be called. So I don't think force prepare here is a
solution.
Didn't see you test, perhaps my talking is not relevant. :)
Empty Rollback on XA will cause Journal Errors
----------------------------------------------
Key: JBMESSAGING-1548
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1548
Project: JBoss Messaging
Issue Type: Bug
Reporter: Clebert Suconic
Assignee: Clebert Suconic
Say you start a XA Transaction, and immediately roll it back (without a prepare record),
while using real files.
the Journal will throw an exception:
BasicTestXA::testEmptyXID will show this situation. (The failing part of the test will be
commented out until this is fixed).
The same will happen when you have non-persistent messages and rollback without adding a
prepare record.
Note: Since Rollbacks are supposed to be infrequent, a solution could be to force a
prepare if prepare wasn't called. (To be disucssed)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira