Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 26129 invoked from network); 15 Dec 2006 13:17:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 13:17:44 -0000 Received: (qmail 86264 invoked by uid 500); 15 Dec 2006 13:17:50 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 86239 invoked by uid 500); 15 Dec 2006 13:17:50 -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 86230 invoked by uid 99); 15 Dec 2006 13:17:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 05:17:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 05:17:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 507D67140F6 for ; Fri, 15 Dec 2006 05:17:22 -0800 (PST) Message-ID: <30404316.1166188642327.JavaMail.jira@brutus> Date: Fri, 15 Dec 2006 05:17:22 -0800 (PST) From: "Jan Kuzniak (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-631) Change resources sequence during transaction commit. In-Reply-To: <12157786.1163160462374.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/JCR-631?page=comments#action_12458790 ] Jan Kuzniak commented on JCR-631: --------------------------------- I am afraid that it is impossible to change this sequence easily. It seems that there are some dependencies between those managers i.e. version manager depends on state manager. Changing this is not trivial and since this part leaks some documentation probably only author can make it. -- Regards, Jan > Change resources sequence during transaction commit. > ---------------------------------------------------- > > Key: JCR-631 > URL: http://issues.apache.org/jira/browse/JCR-631 > Project: Jackrabbit > Issue Type: Improvement > Affects Versions: 1.0, 1.0.1, 1.1, 0.9 > Reporter: Przemo Pakulski > > It seems that during commmit of transaction first changes in version storage are committed, followed by workspace changes. > If second transaction fail it leads to situation where some nodes in workspace could have reference (base version for example) to nonexistenst version in version storage. In such case this node is corrupted, cannot be checked in anymore :-(. > Long term solution is make versioning operation fully transactional (see JCR-630). In short term I think it is worth to change sequence of commit operations on different resources to stores changes in version storage before workspace changes. > It would be better to have some redundant data in version storage (not referenced version) than broken reference in workspace I think. > Any comments ? Does it make sense ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira