Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-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 E9AA1987C for ; Wed, 13 Jun 2012 07:55:48 +0000 (UTC) Received: (qmail 85330 invoked by uid 500); 13 Jun 2012 07:55:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 84760 invoked by uid 500); 13 Jun 2012 07:55:46 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 84243 invoked by uid 99); 13 Jun 2012 07:55:45 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 07:55:45 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2F5D61404B9 for ; Wed, 13 Jun 2012 07:55:45 +0000 (UTC) Date: Wed, 13 Jun 2012 07:55:45 +0000 (UTC) From: "Maya Alipin (JIRA)" To: dev@couchdb.apache.org Message-ID: <1215065059.11666.1339574145196.JavaMail.jiratomcat@issues-vm> In-Reply-To: <266532869.11383.1339569163426.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (COUCHDB-1496) Incomplete Replication on Several Circumstances 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/COUCHDB-1496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294247#comment-13294247 ] Maya Alipin commented on COUCHDB-1496: -------------------------------------- The replication syntax curl -H 'Content-Type: application/json' -vX POST http://[username]:[password]@mayajs.iriscouch.com/_replicator -d ' {"source":"http://[username]:[password]@mayajs.iriscouch.com/jst","continuous":true,"target":"http://[username]:[password]@mayajs.iriscouch.com/mdr","filter":"timesheet/masterToProject","query_params":{"pid":"timesheets.project:4"}}' > Incomplete Replication on Several Circumstances > ----------------------------------------------- > > Key: COUCHDB-1496 > URL: https://issues.apache.org/jira/browse/COUCHDB-1496 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.2 > Environment: iriscouch > Reporter: Maya Alipin > Priority: Minor > > I have found that on several circumstances, CouchDB's continous filtered replication doesn't do what I expect. > 1. deleted documents in source database ends up not deleted in destination database > 2. I notice on continuous replication, the replication status will remain incomplete until check-pointed sequence equals source sequence. On continuous filtered replication, an update may not pass the filter and cause the replication to become incomplete. > I found the replication remains incomplete even if there is an update that pass the filter. I need to restart the replication to get the update replicated to the destination database. > Test Scenario: > 1. Trigger a filtered continuous replication from database X to database Y on _replicator database. Replication progress is 100% > 2. Add new document(A1) on database X. > 3. Document A1 pass the replication filter, thus A1 is replicated to database Y. Replication progress is 100% > 4. Delete document A1 on database X. Replication progress become 99%, document A1 still exists on database Y. > 6. Restart the filtered continuous replication from database X to database Y by deleting document on _replicator database and create it again > 7. Replication progress stops at 99%. > 8. Add new document(A2) on database X. > 9. Document A2 pass the replication filter, thus A2 is replicated to database Y. Replication progress become 100% > 10. Delete document A2 on database X. Replication progress become 99%, document A2 still exists on database Y. -- 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