Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B3EE99FA162 for ; Fri, 1 Dec 2006 07:28:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 04206-03 for ; Fri, 1 Dec 2006 07:28:50 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 42A2A9FA12B for ; Fri, 1 Dec 2006 07:28:50 -0400 (AST) thread-index: AccVO+EtUPJ2iUy0Su2ZhaaS5kUzuA== Received: from [192.168.1.34] ([82.27.233.193]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Dec 2006 06:28:52 -0500 Message-ID: <457011EF.2050001@enterprisedb.com> Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 Date: Fri, 01 Dec 2006 11:28:47 +0000 From: "Heikki Linnakangas" User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: "Kris Jurka" Cc: , Subject: Re: XA end then join fix for WebLogic References: <4520FC19.8070205@enterprisedb.com> In-Reply-To: Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Dec 2006 11:28:52.0734 (UTC) FILETIME=[E11C71E0:01C7153B] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/9 X-Sequence-Number: 16241 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. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com