Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
more debug code for http://www.yacy-forum.de/viewtopic.php?p=33009#33009
orbiter581db87237cb
diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.javaindex 18f6caaaa..036db078a 100644--- a/source/de/anomic/kelondro/kelondroRecords.java+++ b/source/de/anomic/kelondro/kelondroRecords.java@@ -1451,9 +1451,11 @@ public class kelondroRecords {public Node next00() throws IOException {// see if the next record is in the bulk, and if not re-fill the bulk- if ((pos.index - bulkstart) >= bulksize) {+ if (pos.index >= (bulkstart + bulksize)) {bulkstart = pos.index;int maxlength = Math.min(USAGE.allCount() - bulkstart, bulksize);+ if ((POS_NODES + bulkstart * recordsize) < 0)+ serverLog.logSevere("kelondroRecords", "DEBUG: negative offset. POS_NODES = " + POS_NODES + ", bulkstart = " + bulkstart + ", recordsize = " + recordsize);entryFile.readFully(POS_NODES + bulkstart * recordsize, bulk, 0, maxlength * recordsize);}diff --git a/source/de/anomic/plasma/plasmaCrawlNURL.java b/source/de/anomic/plasma/plasmaCrawlNURL.javaindex e12a90e83..a72b17dc7 100644--- a/source/de/anomic/plasma/plasmaCrawlNURL.java+++ b/source/de/anomic/plasma/plasmaCrawlNURL.java@@ -429,7 +429,7 @@ public class plasmaCrawlNURL {try {entry = new Entry(hash);} catch (IOException e) {- serverLog.logSevere("NURL", e.getMessage(), e);+ serverLog.logWarning("NURL", e.getMessage());if (s > balancer.size()) continue;balancer.clear(); // the balancer is broken and cannot shrinkthrow new IOException("IO error, balancer cannot shrink: " + e.getMessage() + "; reset of balancer (2)");