pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Jenkinson <tom.jenkinson@redhat.com>
Cc: Alban Hertroys <haramrae@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ondrej Chaloupka <ochaloup@redhat.com>
Cc: pgsql-general@postgresql.org, pgsql-bugs@postgresql.org, Pavel Raiskup <praiskup@redhat.com>
Subject: Re: [BUGS] Incorrect response code after XA recovery
Date: Tue, 30 Jul 2013 12:17:27 -0400
Message-ID: <20130730161727.GP14652@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <51F7BECB.5060508@redhat.com>
References: <399053975.7952081.1375104824437.JavaMail.root@redhat.com>
	<25825.1375105824@sss.pgh.pa.us>
	<51F679F6.4080504@redhat.com>
	<26246.1375109172@sss.pgh.pa.us>
	<51F682DF.9020806@redhat.com>
	<E73A9E49-4AAA-4E14-9C2B-2F45BC8B03C1@gmail.com>
	<51F7BECB.5060508@redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (13+ messages)  latest in thread

Message-ID: <20130730161727.GP14652@eldon.alvh.no-ip.org>
Permalink:  ../20130730161727.GP14652@eldon.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20130730161727.GP14652@eldon.alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: alvherre@2ndquadrant.com, tom.jenkinson@redhat.com, haramrae@gmail.com, tgl@sss.pgh.pa.us, ochaloup@redhat.com, praiskup@redhat.com
  Subject: Re: [BUGS] Incorrect response code after XA recovery
  In-Reply-To: <20130730161727.GP14652@eldon.alvh.no-ip.org>
  References: <399053975.7952081.1375104824437.JavaMail.root@redhat.com> <25825.1375105824@sss.pgh.pa.us> <51F679F6.4080504@redhat.com> <26246.1375109172@sss.pgh.pa.us> <51F682DF.9020806@redhat.com> <E73A9E49-4AAA-4E14-9C2B-2F45BC8B03C1@gmail.com> <51F7BECB.5060508@redhat.com> <20130730161727.GP14652@eldon.alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox