couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbast...@apache.org
Subject [2/3] couch-replicator commit: updated refs/heads/master to 7ff43ed
Date Fri, 04 Mar 2016 23:53:35 GMT
Switch replicator manager change feeds to "longpoll"

Fixes replication manager rescans on cluster membership
change.

Replication manager resets all replication db
sequence checkpoints, and starts a new replicator db
background scanner.  Each replicator database is signaled
to rescan from sequence 0. However previous change feeds
for each db have to exit first. If they never exit, because
they are "continuous" new change feeds will never start.

Putting change feeds in "longpoll" mode ensures they will
eventually exit.

JIRA: COUCHDB-2963


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/a7e7565d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/a7e7565d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/a7e7565d

Branch: refs/heads/master
Commit: a7e7565d6a743961ebdec155fbfd70f609337ce2
Parents: da86098
Author: Nick Vatamaniuc <vatamane@gmail.com>
Authored: Fri Mar 4 15:06:41 2016 -0500
Committer: Nick Vatamaniuc <vatamane@gmail.com>
Committed: Fri Mar 4 15:06:41 2016 -0500

----------------------------------------------------------------------
 src/couch_replicator_manager.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/a7e7565d/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index 30e1112..0d52d01 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -354,7 +354,7 @@ changes_reader(Server, DbName, Since) ->
         #changes_args{
             include_docs = true,
             since = Since,
-            feed = "continuous",
+            feed = "longpoll",
             timeout = infinity
         },
         {json_req, null},


Mime
View raw message