Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D6CC89FA173 for ; Fri, 1 Dec 2006 08:28:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 77475-03 for ; Fri, 1 Dec 2006 08:28:26 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id 9BE129FA12B for ; Fri, 1 Dec 2006 08:28:30 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id 705A7F26E; Fri, 1 Dec 2006 07:28:29 -0500 (EST) Date: Fri, 1 Dec 2006 07:28:29 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Heikki Linnakangas cc: pgsql-jdbc@postgresql.org, jdevisser@digitalfairway.com Subject: Re: XA end then join fix for WebLogic In-Reply-To: <457011EF.2050001@enterprisedb.com> Message-ID: References: <4520FC19.8070205@enterprisedb.com> <457011EF.2050001@enterprisedb.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/11 X-Sequence-Number: 16243 On Fri, 1 Dec 2006, Heikki Linnakangas wrote: > Kris Jurka wrote: >> Doesn't this allow: >> >> xaRes.start(xid, XAResource.TMNOFLAGS); >> xaRes.end(xid, XAResource.TMFAIL); >> xaRes.start(xid, XAResource.TMJOIN); >> xaRes.end(xid, XAResource.TMSUCCESS); >> xaRes.commit(xid, true); >> >> Is that actually a problem or do we assume the TM is smart enough not to do >> this. > > Hmm, true, it does allow that. > > The TM really shouldn't be doing that. It's very confused if it does. > However, given the sorry state of many TMs out there, it'd be nice if we did > check for that. > > I'd say let's not bother checking that for now. In the future, we should roll > back the transaction on end(TMFAIL) immediately, and add checking for that > case as well. The way it works now is perfectly correct and legal, we're just > not taking advantage of the hint the TM is giving us. > OK. Applied. Kris Jurka