pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-jdbc@postgresql.org
Cc: jdevisser@digitalfairway.com
Subject: Re: XA end then join fix for WebLogic
Date: Fri, 1 Dec 2006 07:28:29 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net> (raw)
In-Reply-To: <457011EF.2050001@enterprisedb.com>
References: <4520FC19.8070205@enterprisedb.com>
	<Pine.BSO.4.64.0612010425480.17199@leary2.csoft.net>
	<457011EF.2050001@enterprisedb.com>



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




view thread (21+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net

 · 

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: books@ejurka.com, heikki@enterprisedb.com, jdevisser@digitalfairway.com
  Subject: Re: XA end then join fix for WebLogic
  In-Reply-To: <Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net>
  References: <4520FC19.8070205@enterprisedb.com> <Pine.BSO.4.64.0612010425480.17199@leary2.csoft.net> <457011EF.2050001@enterprisedb.com> <Pine.BSO.4.64.0612010728090.20488@leary2.csoft.net>

* 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