From 48bd9a2076d83624bb8f8276bc4034251af1a807 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 27 Sep 2010 15:21:26 +0200 Subject: [PATCH] don't try adn connect to couch until we manage to check if there is a last_seq --- .../main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java b/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java index 6c8753f2df1..3ec7cf25841 100644 --- a/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java +++ b/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java @@ -251,6 +251,7 @@ public class CouchdbRiver extends AbstractRiverComponent implements River { logger.warn("failed to get last_seq, throttling....", e); try { Thread.sleep(5000); + continue; } catch (InterruptedException e1) { if (closed) { return;