Hi,
Lately there was a need to fix a peculiar issue related to handling non-exiting tx: no
matter what results xa_commit would bring, it was ignored:
https://issues.jboss.org/browse/WFLY-7196
What I realised while working on it was this behaviour is kinda intentional. To be exact:
https://github.com/jbosstm/jboss-as/commit/87ea78a26a53b71411dd52753bb08e...
https://github.com/jbosstm/jboss-as/commit/de5fbd309cad0767eaf8cf9a8b55f8...
Making XidTransaction*Tasks more strict by throwing exceptions when there is no way to
find a transaction causes some test failures because the whole thing currently relies on
that.
We have sort of conflicting requirements here. I think we need to figure out how do we
distinguish between these two possibile situations when no tx is found: the one where we
call alarm and the one which we want to ignore.
Maybe that hack should be placed somewhere else. What do you think?
Fedor