Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
auto-delete for not-fixable db error in crawl stacker. see also http://www.yacy-forum.de/viewtopic.php?p=32906#32906
orbiter8f7e8b6ee29e
diff --git a/source/de/anomic/plasma/plasmaCrawlStacker.java b/source/de/anomic/plasma/plasmaCrawlStacker.javaindex dface406d..86d966c59 100644--- a/source/de/anomic/plasma/plasmaCrawlStacker.java+++ b/source/de/anomic/plasma/plasmaCrawlStacker.java@@ -676,7 +676,14 @@ public final class plasmaCrawlStacker {this.urlEntryCache = new kelondroCache(new kelondroFlexTable(cacheStacksPath, newCacheName, preloadTime, plasmaCrawlNURL.rowdef), true, false);} catch (IOException e) {e.printStackTrace();- System.exit(-1);+ // kill DB and try again+ kelondroFlexTable.delete(cacheStacksPath, newCacheName);+ try {+ this.urlEntryCache = new kelondroCache(new kelondroFlexTable(cacheStacksPath, newCacheName, preloadTime, plasmaCrawlNURL.rowdef), true, false);+ } catch (IOException ee) {+ ee.printStackTrace();+ System.exit(-1);+ }}}if (this.dbtype == QUEUE_DB_TYPE_TREE) {