Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
logging of deadlocks (if any) during cleanup process
orbiterd0dc86cf3da7
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex e2b427fb8..5900c4357 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -113,6 +113,7 @@ import net.yacy.cora.protocol.TimeoutRequest;import net.yacy.cora.protocol.http.HTTPClient;import net.yacy.cora.protocol.http.ProxySettings;import net.yacy.cora.util.ConcurrentLog;+import net.yacy.cora.util.Memory;import net.yacy.crawler.CrawlStacker;import net.yacy.crawler.CrawlSwitchboard;import net.yacy.crawler.HarvestProcess;@@ -2313,6 +2314,9 @@ public final class Switchboard extends serverSwitch {// these actions may also influence the search index/ call optimize stepsexecAPIActions();+ // show deadlocks if there are any in the log+ if (Memory.deadlocks() > 0) Memory.logDeadlocks();+return true;} catch ( final InterruptedException e ) {this.log.info("cleanupJob: Shutdown detected");