From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ondrej Chaloupka <ochaloup@redhat.com>
Cc: pgsql-general@postgresql.org, pgsql-bugs@postgresql.org, Pavel Raiskup <praiskup@redhat.com>
Cc: Tom Jenkinson <tom.jenkinson@redhat.com>
Subject: Re: [BUGS] Incorrect response code after XA recovery
Date: Mon, 29 Jul 2013 09:50:24 -0400
Message-ID: <25825.1375105824@sss.pgh.pa.us> (raw)
In-Reply-To: <399053975.7952081.1375104824437.JavaMail.root@redhat.com>
References: <399053975.7952081.1375104824437.JavaMail.root@redhat.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Ondrej Chaloupka <ochaloup@redhat.com> writes:
> The OTS specification requires both bottom up and top down recovery to be triggered by the recovering resource. This causes that two rollback calls are done against the DB. DB receives rollback call and does the rollback. Then for the second time it returns the exceptional code. As the DB already rollbacked the transaction and forgot about it the DB returns error that no such transaction exists. But this seems to be against OTS specification.
It's not likely that we would consider changing the behavior of ROLLBACK
PREPARED. The alternatives we would have are (1) silently accept a
ROLLBACK against a non-existent transaction ID, or (2) remember every
rolled-back ID forever. Neither seems sane in the least.
It seems to me that this is something client-side code, probably the XA
manager, would need to deal with. The XA manager already has to track
uncommitted 2-phase transactions, and would furthermore have the best
idea of when it would be safe to forget about a rolled-back ID.
Right offhand it appears to me that that Red Hat bug is filed against
the correct component, and you need to push them harder to fix their
bug/shortcoming rather than claim it's our problem.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: tgl@sss.pgh.pa.us, ochaloup@redhat.com, praiskup@redhat.com, tom.jenkinson@redhat.com
Subject: Re: [BUGS] Incorrect response code after XA recovery
In-Reply-To: <25825.1375105824@sss.pgh.pa.us>
References: <399053975.7952081.1375104824437.JavaMail.root@redhat.com> <25825.1375105824@sss.pgh.pa.us>
* 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