Apache Lucene open-source search software
SOLR-1049 -- Do not log a stacktrace if a poll fails due to the master being down
Shalin Shekhar Mangar3569314914f5
diff --git a/src/java/org/apache/solr/handler/SnapPuller.java b/src/java/org/apache/solr/handler/SnapPuller.javaindex 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) {