mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) 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:
parent
b33094e925
commit
9b818b1ce3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user