[jboss-dev-forums] [JBoss Transactions Development] - Re: Remote txinflow: XID changes

Tom Jenkinson do-not-reply at jboss.com
Wed Oct 19 16:56:16 EDT 2011


Tom Jenkinson [http://community.jboss.org/people/tomjenkinson] created the discussion

"Re: Remote txinflow: XID changes"

To view the discussion, visit: http://community.jboss.org/message/632632#632632

--------------------------------------------------------------
Hi David,

No, its not quite that, that scenario you describe does exist, but thats not the scenario termed an orphan in this case.

An orphan is where a remote resource has a record of the transaction but the remote transaction doesn't.

Sequence:
1. Enlist resources at TM1
2. Propagate to TM2
3. Enlist resources at TM2
4. Return control to TM1
5. Call commit at TM1
6. Proxy the commit to TM2
7. Prepare the resources at TM2
8. -- CRAAAASH AT TM2 --

Now, when TM2 recovers it wont have any record of the transaction at TM2 so the prepared resources at TM2 are orphaned forever. Hence TM2 needs to be able to be able to detect these orphans and roll them back (presumed abort).

Tom
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/632632#632632]

Start a new discussion in JBoss Transactions Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111019/b22b0b73/attachment.html 


More information about the jboss-dev-forums mailing list