Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 56052 invoked from network); 19 Apr 2010 09:43:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 09:43:19 -0000 Received: (qmail 4476 invoked by uid 500); 19 Apr 2010 09:43:19 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 4250 invoked by uid 500); 19 Apr 2010 09:43:17 -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 4240 invoked by uid 99); 19 Apr 2010 09:43:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 09:43:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 09:43:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3J9gqtX010932 for ; Mon, 19 Apr 2010 05:42:52 -0400 (EDT) Message-ID: <22271817.7891271670171989.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 05:42:51 -0400 (EDT) From: "Stephan Huttenhuis (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2598) Saving concurrent sessions executing random operations causes a corrupt JCR In-Reply-To: <1760863561.6711270820390781.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephan Huttenhuis updated JCR-2598: ------------------------------------ Attachment: GXWMF-754-II.patch I performed a small performance test using the attached unit test. I measured the System.currentTimeMillis() before and after a call to validateHierarchy. My test machine has the following specs: Windows XP Pro SP3 / Intel Core2 CPU 6300 @1.86GHz / 3 GB RAM. The unit test has the following parameters: iterations : amount of test runs thread size: amount of threads during a run run size : amount of session saves per thread action size: actions of a thread per session save The consistency check has the following performance impact per session save: iterations/thread size/run size/action size: performance impact 1/5/100/100: 0-16 ms (5 concurrent threads that each do 100 session saves with 100 operations) 1/5/100/1000: 0-63 ms 1/5/10/1000: 0-16 ms 1/5/10/10000 : 0-156 ms 1/5/10/100000: 0-219 ms I have added a new patch which uses a Java property to enabled to checks (default is no checks). IMHO the performance impact is reasonably small and this combined with a Java property which defaults to false I think this is a good addition. > Saving concurrent sessions executing random operations causes a corrupt JCR > --------------------------------------------------------------------------- > > Key: JCR-2598 > URL: https://issues.apache.org/jira/browse/JCR-2598 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 1.6.1, 2.0.0 > Reporter: Stephan Huttenhuis > Attachments: ConcurrencyTest3.java, GXWMF-754-II.patch, JCR-2598.patch, org.apache.jackrabbit.core.ConcurrencyTest3.txt, Output after patch.txt, Output before patch.txt > > > Run the attached unit test. Several concurrent sessions add, move, and remove nodes. Then the index is removed and the repository is again started. The repository is in an inconsistent state and the index cannot be rebuild. Also a lot of exceptions occur. See (see Output before patch.txt). Note that the unit test also suffers from the deadlock of issue http://issues.apache.org/jira/browse/JCR-2525 about half the time. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.