Re: [BUGS] Incorrect response code after XA recovery

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Jenkinson <tom(dot)jenkinson(at)redhat(dot)com>
Cc: Alban Hertroys <haramrae(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Ondrej Chaloupka <ochaloup(at)redhat(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org, Pavel Raiskup <praiskup(at)redhat(dot)com>
Subject: Re: [BUGS] Incorrect response code after XA recovery
Date: 2013-07-30 16:17:27
Message-ID: 20130730161727.GP14652@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general pgsql-jdbc

Tom Jenkinson escribió:
> Hi Alban,
>
> I stripped down the code to a raw XA example using the latest
> postgres driver available in maven central. It demonstrates that
> regardless of what the codebase might suggest, it is certainly the
> case that postgres is returning XAER_RMERR in the scenario where the
> resource manager no longer knows about the Xid.
>
> The code is available here:
> https://github.com/tomjenkinson/xa-recovery/commit/944d45e86a91eacb9489843acfbf6a80f1b4b820

Those error codes do certainly appear in the PGXAConnection.java source
in the pgjdbc git.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2013-07-30 17:12:07 Re: BUG #8345: PostGre SQL database is crashing
Previous Message Klaus Ita 2013-07-30 15:37:58 Re: Fwd: corrupted files

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2013-07-30 17:07:58 Re: Alter table never finishes
Previous Message Giuseppe Broccolo 2013-07-30 15:56:16 Re: Alter table never finishes

Browse pgsql-jdbc by date

  From Date Subject
Next Message jwollman 2013-07-30 18:32:34 Re: Slow statement when using JDBC
Previous Message Tom Jenkinson 2013-07-30 13:25:31 Re: [GENERAL] Incorrect response code after XA recovery