Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Attempt to fix the "lost profile handle" bug. It seems improbable, but it might happen, that during a crawl all queues (indexing, crawling, ...) except the crawl URL stacker ran empty. This commit adds an additional check for an empty crawl stacker queue before executing the profile cleaner.
fuchsi70614385ef93
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 5c14cdd4c..4d317fd78 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1629,7 +1629,9 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser* shutdown procedure*/public boolean cleanProfiles() throws InterruptedException {- if ((sbQueue.size() > 0) || (cacheLoader.size() > 0) || (noticeURL.notEmpty())) return false;+ if ((sbQueue.size() > 0) || (cacheLoader.size() > 0) ||+ (sbStackCrawlThread.size() > 0) || (noticeURL.notEmpty()))+ return false;final Iterator iter = profilesActiveCrawls.profiles(true);plasmaCrawlProfile.entry entry;boolean hasDoneSomething = false;