reverted SVN 6869 as discussed with dulcedo in car after LinuxTag:

missing time-out may be cause of locks during DHT-out

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6920 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 4eab6473d3
commit 51332b787d

@ -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;

Loading…
Cancel
Save