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
This commit is contained in:
Shalin Shekhar Mangar 2009-03-06 11:48:28 +00:00
parent 8c60d23fbf
commit 3569314914
1 changed files with 6 additions and 1 deletions

View File

@ -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) {