Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
River_2.1.1
-
None
Description
[Excerpts from javaspaces users thread: http://archives.java.sun.com/cgi-bin/wa?A2=ind0805&L=JAVASPACES-USERS&T=0&F=&S=&P=3061]
=======================
When using a transaction whose lease has expired:
1) Using in conjunction with space operations, you get an
UnknownTransactionException.
2) Aborting that transaction results in a CannotAbortException (which
has no cause included).
3) Committing that transaction results in an UnknownTransactionException.
Why does the failed abort result in CannotAbort, but the failed commit
does not result in CannotCommit? Why not throw UnknownTransaction in
every case?
=======================
> Why does the failed abort result in CannotAbort?
Good question, looks like an implementation bug to me. (Feel free
to file an Apache River JIRA bug.) The spec seems clear that
CannotAbortException should only be thrown if the transaction manager
knows the transaction previously committed.