summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2011-01-24 14:10:21 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2011-01-24 14:10:21 +0000
commit7e354ef1c1b675daff9be1a842bad1489dd6df8e (patch)
tree5e0f42c79a7b961ef9d7bc594fc1be75c804d0d4 /share/www/script
parente434d8ae3f605a5e122c8e13c29caae27ae61ce1 (diff)
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
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/replicator_db.js13
1 files changed, 10 insertions, 3 deletions
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