From d0dc86cf3da7b57568a45f9e7f1587d04d96be94 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 17 Jul 2013 12:38:58 +0200 Subject: [PATCH] logging of deadlocks (if any) during cleanup process --- source/net/yacy/search/Switchboard.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 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 steps execAPIActions(); + // 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");