Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77982ED2C for ; Fri, 1 Mar 2013 12:48:00 +0000 (UTC) Received: (qmail 57242 invoked by uid 500); 1 Mar 2013 12:48:00 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 57169 invoked by uid 500); 1 Mar 2013 12:48:00 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 57150 invoked by uid 99); 1 Mar 2013 12:48:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 12:47:59 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.18.1.183] (HELO exprod6og102.obsmtp.com) (64.18.1.183) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 12:47:49 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob102.postini.com ([64.18.5.12]) with SMTP ID DSNKUTCjX7iYiU5NcixfamuE5gVF9PU6WtCf@postini.com; Fri, 01 Mar 2013 04:47:29 PST Received: from inner-relay-1.corp.adobe.com (ms-exchange.macromedia.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r21ClQnT029310 for ; Fri, 1 Mar 2013 04:47:26 -0800 (PST) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r21ClPAV022266 for ; Fri, 1 Mar 2013 04:47:25 -0800 (PST) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nahub01.corp.adobe.com (10.8.189.97) with Microsoft SMTP Server (TLS) id 8.3.298.1; Fri, 1 Mar 2013 04:47:25 -0800 Received: from susi.fritz.box (10.136.129.240) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.298.1; Fri, 1 Mar 2013 12:47:23 +0000 Message-ID: <5130A35B.6070706@apache.org> Date: Fri, 1 Mar 2013 12:47:23 +0000 From: =?ISO-8859-1?Q?Michael_D=FCrig?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: Subject: Re: Behaviour of Move Operations References: <08CE22C1-5FFC-40F9-A953-76D30B7E09BD@adobe.com> In-Reply-To: <08CE22C1-5FFC-40F9-A953-76D30B7E09BD@adobe.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What Jukka is saying is that the repository gives you a choice between consistency and availability. Since both you cannot have. Michael On 1.3.13 12:40, Felix Meschberger wrote: > So you essentially say: Behaviour of the repository is "best effort" and we -- at the end of the day -- cannot trust the repository ? > > Sounds frightening. > > IMHO the repository should be failsafe and thus eventually solve the issue making sure we don't end up with two copies of the same node (actually both copies, if referenceable, will even have the same node ID.... > > Regards > Felix > > Am 27.02.2013 um 16:35 schrieb Jukka Zitting: > >> Hi, >> >> On Wed, Feb 27, 2013 at 5:09 PM, Carsten Ziegeler wrote: >>> How will this be handled with Oak? Could it happen that due to this >>> happening concurrently that the node ends up twice in the repository >>> (at /1/node and /2/node in my example)? >> >> The behavior depends on the underlying MicroKernel implementation. >> >> With the new SegmentMK I've been working on, you can control the behavior: >> >> * If both cluster nodes use the same (root) journal, then only one of >> them succeeds and the other one will fail with an exception. The >> behavior is more or less the same as with current Jackrabbit. >> >> * If the cluster nodes use different journals (with background >> merging), then one of the moves will succeed and depending on timing >> the other one either fails or ends up producing a duplicate copy of >> the tree. >> >> The latter option is designed to boost write concurrency in scenarios >> where it's OK for some operations to get lost or produce somewhat >> inconsistent results (high-volume commenting or logging systems, >> etc.). Operations for which such behavior is not desirable should use >> the first option. >> >> BR, >> >> Jukka Zitting > > > -- > Felix Meschberger | Principal Scientist | Adobe > > > > > > >