From 3569314914f5132b87b1ba7899c38334bbd63c94 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Fri, 6 Mar 2009 11:48:28 +0000 Subject: [PATCH] SOLR-1049 -- Do not log a stacktrace if a poll fails due to the master being down git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@750860 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/handler/SnapPuller.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/solr/handler/SnapPuller.java b/src/java/org/apache/solr/handler/SnapPuller.java index f86df506f49..9b57f9eb0d1 100644 --- a/src/java/org/apache/solr/handler/SnapPuller.java +++ b/src/java/org/apache/solr/handler/SnapPuller.java @@ -213,7 +213,12 @@ public class SnapPuller { replicationStartTime = System.currentTimeMillis(); try { //get the current 'replicateable' index version in the master - NamedList response = getLatestVersion(); + NamedList response = null; + try { + response = getLatestVersion(); + } catch (Exception e) { + LOG.error("Master at: "+masterUrl + " is not available. Snappull failed. Exception: " + e.getMessage()); + } long latestVersion = (Long) response.get(CMD_INDEX_VERSION); long latestGeneration = (Long) response.get(GENERATION); if (latestVersion == 0L) {