pgjdbc/pgjdbc — Issue #2: PGXAConnection.commitOnePhase() does not rollback at SQLException
Author: tgyurci
Created: 2012-02-28 14:01:28+00:00
State: open

According to the JTA documentation [1] if an one phase transaction fails with a XA_RM* exception then is must roll back and release the transaction. The PGXAConnection.commitOnePhase() method simply throws an XAException and leaves the transaction open.

[1] http://docs.oracle.com/javase/6/docs/api/javax/transaction/xa/XAResource.html#commit%28javax.transaction.xa.Xid,%20boolean%29