Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 95926 invoked from network); 11 Apr 2011 18:15:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Apr 2011 18:15:42 -0000 Received: (qmail 1396 invoked by uid 500); 11 Apr 2011 18:15:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 1352 invoked by uid 500); 11 Apr 2011 18:15:40 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 1316 invoked by uid 99); 11 Apr 2011 18:15:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 18:15:40 +0000 X-ASF-Spam-Status: No, hits=3.6 required=5.0 tests=FS_REPLICA,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.56.45.60] (HELO grs.hu) (195.56.45.60) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 18:15:34 +0000 Received: from localhost ([127.0.0.1]) by grs.hu with esmtp (Exim 4.74) (envelope-from ) id 1Q9Ldn-0004SO-TD; Mon, 11 Apr 2011 20:15:11 +0200 Message-ID: <4DA3452F.5050809@mage.hu> Date: Mon, 11 Apr 2011 20:15:11 +0200 From: Mage User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Owen Marshall CC: user@couchdb.apache.org Subject: Re: replication References: <4DA1A9CC.4070407@mage.hu> <4DA32E5C.6090100@facilityone.com> <4DA33815.5000303@mage.hu> <4DA33DBA.1070500@facilityone.com> In-Reply-To: <4DA33DBA.1070500@facilityone.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Conflicts will occur any time that edits diverge. It's possible for > conflicts to occur on replication: > > * Nodes B & C pull document 1 from node A > * Nodes B & C make & save separate changes to document 1 > * Replication occurs, either between B & C, or from one node to A and > then to the other. > > Note that continuous replication reduces the time window for conflicts > to occur, but it will not eliminate them. Thus you must treat conflicts > not as an "exceptional case" but as an expected state. I could not trigger conflict straight by the replication. I mean that one version of the document just totally lost when I started the replication. Steps: Node A Node B Version 1 Version 1 Version 2-A Version 1 Version 2-A Version 2-B ...replication... Version 2-B Version 2-B If I, for example, open two browser windows for the same document on same database, conflict can happen: I start editing in the first window, I start editing in the second, I save the second then I save the first. Conflict happens. This is fair and clear situation. However if I do the same with two nodes (databases) and I start replication after the modifying I just lose one version of the document. On both nodes. Mage