Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Pausing Crawlers if there is not enough space on disk See: http://www.yacy-forum.de/viewtopic.php?p=8648

theli9b818b1ce3eb
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java
index dc7390510..cf09e81f9 100644
--- a/source/de/anomic/plasma/plasmaCrawlWorker.java
+++ b/source/de/anomic/plasma/plasmaCrawlWorker.java
@@ -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);
}