mirror of https://github.com/apache/lucene.git
logging messages changed to remove the word snap
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@790810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
35384b4db3
commit
eae2e9af5d
|
@ -160,7 +160,7 @@ public class SnapPuller {
|
||||||
executorStartTime = System.currentTimeMillis();
|
executorStartTime = System.currentTimeMillis();
|
||||||
replicationHandler.doSnapPull(null);
|
replicationHandler.doSnapPull(null);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Exception in pulling snapshot", e);
|
LOG.error("Exception in fetching index", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -239,7 +239,7 @@ public class SnapPuller {
|
||||||
try {
|
try {
|
||||||
response = getLatestVersion();
|
response = getLatestVersion();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Master at: "+masterUrl + " is not available. Snappull failed. Exception: " + e.getMessage());
|
LOG.error("Master at: "+masterUrl + " is not available. Index fetch failed. Exception: " + e.getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
long latestVersion = (Long) response.get(CMD_INDEX_VERSION);
|
long latestVersion = (Long) response.get(CMD_INDEX_VERSION);
|
||||||
|
@ -267,7 +267,7 @@ public class SnapPuller {
|
||||||
LOG.info("Starting replication process");
|
LOG.info("Starting replication process");
|
||||||
// get the list of files first
|
// get the list of files first
|
||||||
fetchFileList(latestVersion);
|
fetchFileList(latestVersion);
|
||||||
LOG.info("Number of files in latest snapshot in master: " + filesToDownload.size());
|
LOG.info("Number of files in latest index in master: " + filesToDownload.size());
|
||||||
|
|
||||||
// Create the sync service
|
// Create the sync service
|
||||||
fsyncService = Executors.newSingleThreadExecutor();
|
fsyncService = Executors.newSingleThreadExecutor();
|
||||||
|
@ -299,7 +299,6 @@ public class SnapPuller {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
terminateAndWaitFsyncService();
|
terminateAndWaitFsyncService();
|
||||||
LOG.info("Conf files are not downloaded or are in sync");
|
|
||||||
if (isSnapNeeded) {
|
if (isSnapNeeded) {
|
||||||
modifyIndexProps(tmpIndexDir.getName());
|
modifyIndexProps(tmpIndexDir.getName());
|
||||||
} else {
|
} else {
|
||||||
|
@ -318,7 +317,7 @@ public class SnapPuller {
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
delTree(tmpIndexDir);
|
delTree(tmpIndexDir);
|
||||||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Snappull failed : ", e);
|
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Index fetch failed : ", e);
|
||||||
} finally {
|
} finally {
|
||||||
delTree(tmpIndexDir);
|
delTree(tmpIndexDir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue