From dev-return-34830-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Apr 18 10:24:08 2012 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E048A9CD2 for ; Wed, 18 Apr 2012 10:24:07 +0000 (UTC) Received: (qmail 38847 invoked by uid 500); 18 Apr 2012 10:24:07 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 38809 invoked by uid 500); 18 Apr 2012 10:24:07 -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 38801 invoked by uid 99); 18 Apr 2012 10:24:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 10:24:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 10:24:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DE4E839F5BE for ; Wed, 18 Apr 2012 10:23:40 +0000 (UTC) Date: Wed, 18 Apr 2012 10:23:40 +0000 (UTC) From: "Bart van der Schans (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1119997468.188.1334744620912.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1683457846.28281.1334577498692.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3292) Workspace move in concurrent environment causes inconsistencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256421#comment-13256421 ] Bart van der Schans commented on JCR-3292: ------------------------------------------ Merged in the 2.4 branch in revision 1327442. > Workspace move in concurrent environment causes inconsistencies > --------------------------------------------------------------- > > Key: JCR-3292 > URL: https://issues.apache.org/jira/browse/JCR-3292 > Project: Jackrabbit Content Repository > Issue Type: Bug > Affects Versions: 2.2.11, 2.4 > Reporter: Unico Hommes > Assignee: Bart van der Schans > Attachments: JCR-3292.patch, WorkspaceMoveTest.patch > > > Attached is a test case that shows that using workspace move concurrent with other write operations causes inconsistencies. > The problem is that unlike session move, workspace move operates on the local item state directly (session move operates on transient item state). When a concurrent modification occurs on for instance the source parent of the moved target the modification that the move operation was trying to do is overwritten as the changes from the concurrent session are pulled in: > - on thread 1 a workspace.move is initiated on /folder1/node to /folder2/node, removing the child node entry from /folder1 a.o.t. > - session 2 on thread 2 modifies and saves /folder1, overwriting the changes on the local item state of /folder1 in session 1 > - thread 1, still in the workspace move operation, sends the updates to the shared item state manager -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira