Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 655BC1073B for ; Tue, 2 Jul 2013 19:17:23 +0000 (UTC) Received: (qmail 81162 invoked by uid 500); 2 Jul 2013 19:17:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81077 invoked by uid 500); 2 Jul 2013 19:17:21 -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 81060 invoked by uid 99); 2 Jul 2013 19:17:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 19:17:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 206.225.164.29 as permitted sender) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 19:17:16 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.191]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Tue, 2 Jul 2013 12:16:54 -0700 From: Jens Alfke To: "user@couchdb.apache.org" Date: Tue, 2 Jul 2013 12:16:54 -0700 Subject: Re: when replication hits wrong update_validation Thread-Topic: when replication hits wrong update_validation Thread-Index: Ac53WLZYIkz4scl3R/emfOyLfCmJzw== Message-ID: <69BC444C-E5E3-45B0-BBD9-85177F81E290@couchbase.com> References: <20130702154455.4c3d1e9b@svilendobrev.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jul 2, 2013 at 5:44 AM, svilen wrote: > a) can i force it to copy all again? i'm not sure if that "since" number > is kept in touchdb-localy or on server too. The checkpoint is kept on both sides to ensure consistency. I think you=92l= l need to delete and recreate one of the databases (either on device or Cou= chDB) to reset the replication. On iOS there is a =93reset=94 property you = can set in the replication spec to force starting over, but I don=92t think= that=92s implemented on Android yet. > b) how is this case handled in plain couchdb doing replication? The replicator isn=92t supposed to treat a document as having been replicat= ed unless the PUT either succeeded or returned a 403 Forbidden status. The = 500 error you got in this case should have left the local doc=92s status as= unsynchronized, so the replicator would try it again next time. Tracking the state of which docs have been synced and which haven=92t is pr= etty tricky. In the case of TouchDB / Couchbase Lite, here were a bunch of = improvements made on iOS that haven=92t been ported to Android yet. =97Jens=