Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 45263 invoked from network); 15 Mar 2007 10:20:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 10:20:55 -0000 Received: (qmail 72953 invoked by uid 500); 15 Mar 2007 10:21:01 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 72921 invoked by uid 500); 15 Mar 2007 10:21:01 -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 72891 invoked by uid 99); 15 Mar 2007 10:21:01 -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:21:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of shane.preater@googlemail.com designates 64.233.162.236 as permitted sender) Received: from [64.233.162.236] (HELO nz-out-0506.google.com) (64.233.162.236) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 03:20:50 -0700 Received: by nz-out-0506.google.com with SMTP id s18so47663nze for ; Thu, 15 Mar 2007 03:20:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=O9MhQkpJ1M2rOcoWqLJhSuIZVyve2r+gM59ZFDc0PDBM8KHVmIqaCAbNRxb9H/oc6HdN/0DsyjPRiaJr9voSlho/fANSSsm9F4fJ7IC+Hu+/jZZ2z3YZ78hOzf96GpFBemYU0UoxD0XAJoD+LCCAkDiP25d1yUvxcnHhr79Ne9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ljUuxMtyI8H+6o8/XO8wmc14meLYKcA7dLQRV6ANNyQQjHHPhVA/ugyCh3r8LbQn344cIi7qS+Hz4028AkPoAEQbzfyYEgFREpQdwb9C3rkR96Qu+/8c0jns8sVMq4wsR/u1ZJUwQEa3axgnwGJgJX2OmCuZW4Ar2Excg8Wemmg= Received: by 10.35.27.1 with SMTP id e1mr1153593pyj.1173954029583; Thu, 15 Mar 2007 03:20:29 -0700 (PDT) Received: by 10.35.32.15 with HTTP; Thu, 15 Mar 2007 03:20:29 -0700 (PDT) Message-ID: <64cf6d8b0703150320o630380fag8887a5eabd8eed18@mail.gmail.com> Date: Thu, 15 Mar 2007 10:20:29 +0000 From: "Shane Preater" To: dev@jackrabbit.apache.org, tobias.bocanegra@day.com Subject: Re: Possible deadlock of jcr-server 1.2.1 (rmi) In-Reply-To: <8be731880703150241y6d7a9c45o6d2b4089bfc031a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24018_2889171.1173954029514" 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> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24018_2889171.1173954029514 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 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 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 >--- > ------=_Part_24018_2889171.1173954029514--