[jboss-jira] [JBoss JIRA] (WFLY-5230) Check status of Transaction prior to UserTransactionCommitTask and UserTransactionRollbackTask
Johnathon Lee (JIRA)
issues at jboss.org
Fri Aug 28 09:45:05 EDT 2015
Johnathon Lee created WFLY-5230:
-----------------------------------
Summary: Check status of Transaction prior to UserTransactionCommitTask and UserTransactionRollbackTask
Key: WFLY-5230
URL: https://issues.jboss.org/browse/WFLY-5230
Project: WildFly
Issue Type: Enhancement
Components: EJB
Affects Versions: 9.0.1.Final
Reporter: Johnathon Lee
UserTransactionCommitTask should check the status and say something like "if not committed, call commit"
UserTransactionRollbackTask should check the status and say something like "if not rolled back, call rollback"
Note that those two operations when combined are not atomic and the reaper thread may in parallel roll it back. E.g.
app thread
if tx not committed
reaper thread
rollback tx
app thread
commit
But that should only happen rarely. It would result in an exception to the client and log messages and would not be considered a defect.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list