Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4DC8F9FB302 for ; Fri, 10 Nov 2006 12:08:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 28767-06-2 for ; Fri, 10 Nov 2006 12:07:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id EDCE29FB2FB for ; Fri, 10 Nov 2006 12:07:58 -0400 (AST) thread-index: AccE4mLcrTVtPsriQy2YtnVbNJ5LcA== Received: from [192.168.0.22] ([62.232.55.118]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 10 Nov 2006 11:07:56 -0500 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 Content-class: urn:content-classes:message Message-ID: <4554A3D8.3050301@enterprisedb.com> Importance: normal Date: Fri, 10 Nov 2006 16:07:52 +0000 From: "Heikki Linnakangas" User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: "ludovic orban" Cc: Subject: Re: XA end then join fix for WebLogic References: <4547C128.40404@enterprisedb.com> <45487C70.6000604@enterprisedb.com> <45507CB9.2020206@enterprisedb.com> <4551B0C5.3010708@enterprisedb.com> <455378EB.4060409@enterprisedb.com> In-Reply-To: Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Nov 2006 16:07:57.0031 (UTC) FILETIME=[62D0A770:01C704E2] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/51 X-Sequence-Number: 16093 ludovic orban wrote: >> > This has absolutely nothing to do >> > with XA nor interleaved transactions and you could reproduce the exact >> > same behavior with two different connections. >> >> I challenge you to do so. ;) > > Done. See attached test case. Ahh, I see what you mean now. Technically, with your modified test case, what you get is not a *deadlock*, it's a serialization error. Which is different: the deadlock in my original test case doesn't get resolved until a timeout kicks in, whereas in your modified test case the serialization error is detected as soon as A commits. Actually, I'm surprised that Firebird notices the deadlock in my original test case at all. You can "fix" the test case by changing the commit call in the Committer thread to a rollback. What should then happen is that the second update continues as soon as A rolls back. There's no conflict because A rolled back, right?. With that modification, your test case runs OK, and mine throws the same exception as before. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com