*) Pausing Crawlers if there is not enough space on disk

See: http://www.yacy-forum.de/viewtopic.php?p=8648

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@603 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2005-08-30 09:43:27 +00:00
parent b33094e925
commit 9b818b1ce3

View File

@ -455,6 +455,10 @@ public final class plasmaCrawlWorker extends Thread {
retryCrawling = true;
} else if (errorMsg.indexOf("Connection refused") >= 0) {
log.logWarning("CRAWLER Connection refused while trying to connect to '" + url.toString() + "'.");
} else if (errorMsg.indexOf("There is not enough space on the disk") >= 0) {
log.logFailure("CRAWLER Not enough space on the disk detected while crawling '" + url.toString() + "'. " +
"Pausing crawlers. ");
plasmaCrawlLoader.switchboard.pauseCrawling();
} else {
log.logError("CRAWLER Unexpected Error with URL '" + url.toString() + "': " + e.toString(),e);
}