Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

removed re-read of index in case of a bad index. This may not solve the problem but it applies a 100% CPU problem on the peer. I'm afraid bad index files must be abandoned, and cannot be fixed this way.

orbiterd865ef77a8e4
diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.java
index ef0d9592d..c21296270 100644
--- a/source/net/yacy/kelondro/blob/HeapReader.java
+++ b/source/net/yacy/kelondro/blob/HeapReader.java
@@ -414,11 +414,12 @@ public class HeapReader {
file.readFully(keyf, 0, keyf.length);
if (!this.ordering.equal(key, keyf)) {
// verification of the indexed access failed. we must re-read the index
- Log.logSevere("kelondroBLOBHeap", "verification indexed access for " + heapFile.toString() + " failed, re-building index");
+ Log.logSevere("kelondroBLOBHeap", "indexed verification access failed for " + heapFile.toString());
// this is a severe operation, it should never happen.
+ return null;
// but if the process ends in this state, it would completely fail
// if the index is not rebuild now at once
- initIndexReadFromHeap();
+ //initIndexReadFromHeap();
}
// read the blob