Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 51096 invoked from network); 15 Mar 2007 10:39:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 10:39:14 -0000 Received: (qmail 3421 invoked by uid 500); 15 Mar 2007 10:39:21 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 3390 invoked by uid 500); 15 Mar 2007 10:39:21 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 3378 invoked by uid 99); 15 Mar 2007 10:39:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 03:39:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 209.85.134.191 as permitted sender) Received: from [209.85.134.191] (HELO mu-out-0910.google.com) (209.85.134.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 03:39:10 -0700 Received: by mu-out-0910.google.com with SMTP id g7so158867muf for ; Thu, 15 Mar 2007 03:38:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sy2TllHVhVixbNx4m05ZIOAZdmH53INTMyXKSpV7gS5AcJF4JTQA+4j5uMo0skYVHsTH9o0NxFCJtg4ipm8EQGuK0jyb8tmAMSUmGtUBE78T2tdXHo4WBrVBmnOGr5wJsgiAxKJ+MiDXLhVjiH1Aytv9VzDhVx+y4wU2siRwZtQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rzpm2RgBjwKCKTNAc9BgRrYXJVcmPtSApvgWzpokzuFeNU7aPq3xzQsftaH40MCI1RXgoO8sP4TEdx7B2jvnu2YYAK8j/brEZcKCFtGN4vWW7qx2S0NBkj/Qta51lX8u1+gbQxe6ezRxzPdp/4m84NAMoxiyCO+hXwXJoefndq8= Received: by 10.82.114.3 with SMTP id m3mr399370buc.1173955129128; Thu, 15 Mar 2007 03:38:49 -0700 (PDT) Received: by 10.82.141.18 with HTTP; Thu, 15 Mar 2007 03:38:48 -0700 (PDT) Message-ID: <8be731880703150338t446197dekdd044859314777cf@mail.gmail.com> Date: Thu, 15 Mar 2007 11:38:48 +0100 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: "Shane Preater" Subject: Re: Possible deadlock of jcr-server 1.2.1 (rmi) Cc: dev@jackrabbit.apache.org In-Reply-To: <64cf6d8b0703150320o630380fag8887a5eabd8eed18@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F7B6AD.70101@gmx.net> <510143ac0703140155r54caaf58h7cfc17500bdd36e4@mail.gmail.com> <9f929f1c0703140339m7d12ca6lbb1f8d865cc6fe6e@mail.gmail.com> <8be731880703140357g19b06745h2a7fd53eaa47a868@mail.gmail.com> <64cf6d8b0703141621v51ad75efh86372f18160336f7@mail.gmail.com> <8be731880703150241y6d7a9c45o6d2b4089bfc031a2@mail.gmail.com> <64cf6d8b0703150320o630380fag8887a5eabd8eed18@mail.gmail.com> X-Google-Sender-Auth: a341d8067ce469cb X-Virus-Checked: Checked by ClamAV on apache.org wow, cool. can you attach the patch to the jira issue? that would be great. thanx. regards, toby On 3/15/07, Shane Preater wrote: > Thanks for that Tobias. > > We have now implemented the fix proposed by Marcel and this has sorted out > our dead lock issue (Based on the tests we created to verify that our issues > were the same as that found by Olivier) so if anyone else is experiencing > this issue then Marcel's fix is the way to go temporarily. > > Regards, > Shane. > > > On 15/03/07, Tobias Bocanegra wrote: > > hi, > > a quick search in jira shows that the following issues deal with > > deadlocked repositories: > > > > http://issues.apache.org/jira/browse/JCR-546 > > http://issues.apache.org/jira/browse/JCR-672 > > http://issues.apache.org/jira/browse/JCR-447 > > http://issues.apache.org/jira/browse/JCR-443 > > http://issues.apache.org/jira/browse/JCR-335 > > > > the hacks i mentioned earlier where fixes for some of those issues. > > the solution that marcel proposed seems reasonable and could help > > solving this issues in the short run. > > > > regards, toby > > > > On 3/15/07, Shane Preater wrote: > > > Tobias, > > > We are also experiencing this problem with deadlocks on our system could > you > > > outline the "hacks" you have used to fix this issue. We are using > versioning > > > in a production environment so if we need to hack it temporarily to get > over > > > this issue then so be it for the moment. > > > > > > Also I will keep an eye on the JIRA issue for when the proper fix is > > > implemented. > > > > > > Thanks very much, > > > Shane. > > > > > > > > > On 14/03/07, Tobias Bocanegra < tobias.bocanegra@day.com> wrote: > > > > hi, > > > > we analyzed the issue several times and most of the fixes were hacks > > > > to prevent deadlocks and data corruption. > > > > imo, we can't fixed the transaction/concurrency issues that occur > > > > together with versioning without a bigger redesign of some of the core > > > > parts of jackrabbit. > > > > > > > > regards, toby > > > > > > > > On 3/14/07, Miro Walker < miro.walker@gmail.com> wrote: > > > > > We've been aware of this issue for a while. Unfortunately, the > locking > > > > > implementation is pretty hard to disentangle, and we haven't been > able > > > > > to come up with a fix. However, we have been able to work around it > by > > > > > adding an extra level of synchronisation in our own application that > > > > > ensures only one simultaneous versioning operation can occur. I > guess > > > > > it depends how big a hit this would be as to whether it would be a > > > > > suitable solution for anyone else. > > > > > > > > > > Miro > > > > > > > > > > On 3/14/07, Jukka Zitting < jukka.zitting@gmail.com> wrote: > > > > > > Hi, > > > > > > > > > > > > Seems like another case of the age-old JCR-18 issue with > concurrent > > > > > > versioning. Both of the updates contain some versioning > operations, > > > > > > and since concurrent versioning is at the moment still a rather > > > > > > dangerous sport, I'm not surprised if bad things like a deadlock > can > > > > > > occur. > > > > > > > > > > > > Any contributions in further diagnosing and resolving the > concurrent > > > > > > versioning issues would be very much appreciated! > > > > > > > > > > > > BR, > > > > > > > > > > > > Jukka Zitting > > > > > > > > > > > > > > > > > > > > > > > -- > > > > -----------------------------------------< > > > tobias.bocanegra@day.com >--- > > > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 > Basel > > > > T +41 61 226 98 98, F +41 61 226 98 97 > > > > -----------------------------------------------< > > > http://www.day.com >--- > > > > > > > > > > > > > > > > -- > > -----------------------------------------< > tobias.bocanegra@day.com >--- > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel > > T +41 61 226 98 98, F +41 61 226 98 97 > > -----------------------------------------------< > http://www.day.com >--- > > > > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---