Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V3rcd-0001sy-E7 for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jul 2013 17:52:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V3rcc-0006mG-Or for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jul 2013 17:52:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V3rcc-0006m6-37; Mon, 29 Jul 2013 17:52:38 +0000 Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V3rcY-0002Fz-In; Mon, 29 Jul 2013 17:52:37 +0000 Received: by mail-ee0-f46.google.com with SMTP id c13so501770eek.33 for ; Mon, 29 Jul 2013 10:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=akgCAZ9YQrYpbrGgvXhnCzxcKtx7gVi2NFI7fJSw2ek=; b=i3R4K2mF4k2I+Vf8D6n9ZcVvmUXup1I0n9do7jtVq8dwb23oWCv5lV1pcliksWfeVn vEdfn8S3Em+XKUR7FzBV0fZN93pPjNK1jvSNhyWnamce20sdzpcyUZEMUyAxLXVcW9V6 FoI1sVSq9OWa7iNmB8Xo1P5i5GIWWnkty0K5aRDg/k7GD5yeCJzHOH3sgdXldtxymfC+ uQiTj2ZH4OPrchvm39GS64vYsHtw8bDfYwnSXJlXfxHt0+pKXH2L8BySzpJJBhgK8JXv IozyGul42jWwu25OM9FynjgiL08NpxkpY++cbjOt2Oh8px/3A8/MvyetK0jMpRUmKq/E 9gKQ== X-Received: by 10.15.36.72 with SMTP id h48mr61092855eev.33.1375120353605; Mon, 29 Jul 2013 10:52:33 -0700 (PDT) Received: from hollewijn.internal (8d690a59.ftth.concepts.nl. [141.105.10.89]) by mx.google.com with ESMTPSA id 43sm9993495eek.5.2013.07.29.10.52.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 10:52:32 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: [GENERAL] Incorrect response code after XA recovery From: Alban Hertroys In-Reply-To: <51F682DF.9020806@redhat.com> Date: Mon, 29 Jul 2013 19:52:31 +0200 Cc: Tom Lane , Ondrej Chaloupka , pgsql-general@postgresql.org, pgsql-bugs@postgresql.org, Pavel Raiskup Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Tom Jenkinson X-Mailer: Apple Mail (2.1508) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Jul 29, 2013, at 16:57, Tom Jenkinson wrote: > Hi Tom, >=20 > On Mon 29 Jul 2013 15:46:12 BST, Tom Lane wrote: >> Tom Jenkinson writes: >>> A little bit of information in the linked bugzilla report is that the >>> exception being returned has an XA error code of XAER_RMERR "An error >>> occurred in rolling back the transaction branch. The resource manager is >>> free to forget about the branch when returning this error so long as all >>> accessing threads of control have been notified of the branch=92s state= ." >>=20 >>> That does not sound right to me, wouldn't XAER_NOTA "The specified XID >>> is not known by the resource manager" be more accurate? >>=20 >> No idea, but in any case that's outside Postgres' purview. It's barely >> possible that the Postgres JDBC driver has something to do with that, >> but it sounds more like the XA manager's turf. >=20 > I am not sure what you mean here as I don't know the structure of how the= PostGres project is packaged, all I know is that the PostGres JDBC driver = component appears to be returning an XAException with the message "Error ro= lling back prepared transaction" and an errorCode of XAException.XAER_RMERR= rather than XAER_NOTA. Looking at the error codes, it appears that it isn't even the Postgres JDBC= driver returning that error, but the XA manager you're using, which is not= a part of Postgres (nor is the JDBC driver, for that matter - that's a sep= arate project). The errors you're quoting are from the XA manager and are about XA manager = stuff. For all we know, the actual error appears to be occuring in the XA m= anager and not in Postgres. It's possible that the XA manager error is a re= sult of an error that Postgres returned, but since the XA manager prints it= s own error message and not the original one, you'll need to uncover those = error messages before we can help you with them. For all we know at this point, the error is with your XA manager, not with = Postgres. If you want to be sure, grep the source of the JDBC driver for those error = codes; I doubt you'll find them in there. Google was kind enough to point me here: http://jdbc.postgresql.org/develop= ment/git.html Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs