mirror of https://github.com/apache/lucene.git
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:
parent
8c60d23fbf
commit
3569314914
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue