Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
self-healing for lost crawl profile handles
orbiter8030ed3319d1
diff --git a/.project b/.projectindex 2ef8b129c..84d4a43ce 100644--- a/.project+++ b/.project@@ -1,22 +1,28 @@-<?xml version="1.0" encoding="UTF-8"?>-<projectDescription>- <name>yacy</name>- <comment></comment>- <projects>- </projects>- <buildSpec>- <buildCommand>- <name>org.eclipse.jdt.core.javabuilder</name>- <arguments>- </arguments>- </buildCommand>- <buildCommand>- <name>org.eclipse.wst.validation.validationbuilder</name>- <arguments>- </arguments>- </buildCommand>- </buildSpec>- <natures>- <nature>org.eclipse.jdt.core.javanature</nature>- </natures>-</projectDescription>+<?xml version="1.0" encoding="UTF-8"?>+<projectDescription>+ <name>yacy</name>+ <comment></comment>+ <projects>+ </projects>+ <buildSpec>+ <buildCommand>+ <name>org.eclipse.jdt.core.javabuilder</name>+ <arguments>+ </arguments>+ </buildCommand>+ <buildCommand>+ <name>org.eclipse.wst.validation.validationbuilder</name>+ <arguments>+ </arguments>+ </buildCommand>+ <buildCommand>+ <name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name>+ <arguments>+ </arguments>+ </buildCommand>+ </buildSpec>+ <natures>+ <nature>org.eclipse.jdt.core.javanature</nature>+ <nature>net.sourceforge.pmd.eclipse.plugin.pmdNature</nature>+ </natures>+</projectDescription>diff --git a/source/de/anomic/search/Switchboard.java b/source/de/anomic/search/Switchboard.javaindex f084c16d4..9c92c51bb 100644--- a/source/de/anomic/search/Switchboard.java+++ b/source/de/anomic/search/Switchboard.java@@ -1341,7 +1341,10 @@ public final class Switchboard extends serverSwitch {while (it.hasNext()) {selentry = it.next();assert selentry.handle() != null : "profile.name = " + selentry.name();- if (selentry.handle() == null) continue;+ if (selentry.handle() == null) {+ it.remove();+ continue;+ }if (selentry.name().equals(CrawlSwitchboard.CRAWL_PROFILE_PROXY))crawler.profilesActiveCrawls.changeEntry(selentry, CrawlProfile.entry.RECRAWL_IF_OLDER,Long.toString(crawler.profilesActiveCrawls.getRecrawlDate(CrawlSwitchboard.CRAWL_PROFILE_PROXY_RECRAWL_CYCLE)));