From d5b1953b1b309fea7ed32ddc389d32e044e178bf Mon Sep 17 00:00:00 2001 From: simonpoole Date: Fri, 1 Mar 2019 23:41:58 +0100 Subject: [PATCH] Don't cancel TimerTask just because we had a network issue --- .../java/de/komoot/photon/elasticsearch/Replicatior.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/komoot/photon/elasticsearch/Replicatior.java b/src/main/java/de/komoot/photon/elasticsearch/Replicatior.java index 9f2a6bb5e..2ae61f405 100644 --- a/src/main/java/de/komoot/photon/elasticsearch/Replicatior.java +++ b/src/main/java/de/komoot/photon/elasticsearch/Replicatior.java @@ -74,7 +74,7 @@ public void start() { /** * Read the local and remote state file and then download any missing replication files * - * FIXME: should likely throw and exception if the difference between sequence numbers is very large + * FIXME: should likely throw an exception if the difference between sequence numbers is very large * */ class ReplicationTask extends TimerTask { @@ -132,8 +132,7 @@ public void run() { log.info(String.format("Update done. %d deletions %d updates or additions.", deletions, updates)); } } catch (IOException e) { - log.error("Replicator failing", e); - cancel(); + log.error("Replicator failing because ", e); } } }