Incorrect return code for error on call of commit during 2PC

From: Ondrej Chaloupka <ochaloup(at)redhat(dot)com>
To: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Incorrect return code for error on call of commit during 2PC
Date: 2014-12-08 11:26:46
Message-ID: 465999501.22868325.1418038006701.JavaMail.zimbra@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

it seems that PostgreSQL jdbc driver returns incorrect code during on call of commit during 2PC. Currently the driver returns XAER_RMERR.
I expect that it's this call
https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/xa/PGXAConnection.java#L528

But the XA spec says for XAER_RMERR that

Browse pgsql-bugs by date

  From Date Subject
Next Message Ondrej Chaloupka 2014-12-08 11:33:08 Incorrect return code for error on call of commit during 2PC
Previous Message Pierre Slania 2014-12-08 10:47:26 Out of memory: postgres killed after changing "checkoint_completion_target" and reloading postgres configuration file