Atomikos Forum

Resumption of ACTIVE transactions does not restore XAResource

When the XAResource is initialized after starting the transaction manager ACTIVE transactions from the log never get restored their XAResource and therefor can never be terminated - hanging around and stacking up forever.

I'm not really sure which one is the bug:
a) that we end up having ACTIVE transaction restored from the log at XAResourceTransaction states:
// This should not interfere with recovery since a recovered
// instance will NOT have state ACTIVE...
or
b) not setting the xaresource when it's null


so far I have gone with b) and the following patch

https://gist.github.com/mbechler/4be88aaa3d350a91db8a
Moritz Bechler Send private email
Saturday, September 19, 2015
 
 
Sorry - just noticed this now.

What is your use case that you are recovering active transactions?

Thanks
Guy Pardon Send private email
Tuesday, December 15, 2015
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics