From 7e354ef1c1b675daff9be1a842bad1489dd6df8e Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Mon, 24 Jan 2011 14:10:21 +0000 Subject: Merge revision 1062783 from trunk Replicator DB: on restart, make several attempts to restart the replications Now on restart, the replicator database listener will make up to 10 attempts to restart each replication. Before each attempt, it waits, using an exponential backoff strategy, before doing the next attempt. This is very useful because when one server restarts, other servers that are endpoints of its replications, may not be online yet. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1062784 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/replicator_db.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/www/script/test/replicator_db.js b/share/www/script/test/replicator_db.js index 3c6a5d8e..277787b9 100644 --- a/share/www/script/test/replicator_db.js +++ b/share/www/script/test/replicator_db.js @@ -805,9 +805,16 @@ couchTests.replicator_db = function(debug) { restartServer(); continuous_replication_survives_restart(); - repDb.deleteDb(); - restartServer(); - run_on_modified_server(server_config, error_state_replication); +/* + * Disabled, since error state would be set on the document only after + * the exponential backoff retry done by the replicator database listener + * terminates, which takes too much time for a unit test. + */ +/* + * repDb.deleteDb(); + * restartServer(); + * run_on_modified_server(server_config, error_state_replication); + */ // cleanup -- cgit v1.2.3