Skip to content

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

reverted SVN 6869 as discussed with dulcedo in car after LinuxTag: missing time-out may be cause of locks during DHT-out

orbiter51332b787ddb
diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
index bcb67ab52..79e8e4749 100644
--- a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
+++ b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
@@ -211,14 +211,16 @@ public final class ReferenceContainerArray<ReferenceType extends Reference> {
ReferenceContainer<ReferenceType> c = new ReferenceContainer<ReferenceType>(this.factory, termHash, RowSet.importRowSet(a, payloadrow));
if (System.currentTimeMillis() > timeout) {
Log.logWarning("ReferenceContainerArray", "timout in index retrieval (1): " + k + " tables searched. timeout = 3000");
- timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
+ return c;
+ // timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
}
while (entries.hasNext()) {
c = c.merge(new ReferenceContainer<ReferenceType>(this.factory, termHash, RowSet.importRowSet(entries.next(), payloadrow)));
k++;
if (System.currentTimeMillis() > timeout) {
Log.logWarning("ReferenceContainerArray", "timout in index retrieval (2): " + k + " tables searched. timeout = 3000");
- timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
+ return c;
+ // timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
}
}
return c;