From 92db7c5d07bbb4e683b80b349e411e2b4a1b8eee Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 7 Oct 2009 13:03:13 +0000 Subject: [PATCH] increased timeout for index retrieval git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6379 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/text/ReferenceContainerArray.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/kelondro/text/ReferenceContainerArray.java b/source/de/anomic/kelondro/text/ReferenceContainerArray.java index b4a121f5a..a3c255d95 100644 --- a/source/de/anomic/kelondro/text/ReferenceContainerArray.java +++ b/source/de/anomic/kelondro/text/ReferenceContainerArray.java @@ -196,21 +196,21 @@ public final class ReferenceContainerArray { * @throws IOException */ public ReferenceContainer get(final byte[] termHash) throws IOException { - long timeout = System.currentTimeMillis() + 1000; + long timeout = System.currentTimeMillis() + 3000; Iterator entries = this.array.getAll(termHash).iterator(); if (entries == null || !entries.hasNext()) return null; byte[] a = entries.next(); int k = 1; ReferenceContainer c = new ReferenceContainer(this.factory, termHash, RowSet.importRowSet(a, payloadrow)); if (System.currentTimeMillis() > timeout) { - Log.logWarning("ReferenceContainerArray", "timout in index retrieval (1): " + k + " tables searched. timeout = 1000"); + Log.logWarning("ReferenceContainerArray", "timout in index retrieval (1): " + k + " tables searched. timeout = 3000"); return c; } while (entries.hasNext()) { c = c.merge(new ReferenceContainer(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 = 1000"); + Log.logWarning("ReferenceContainerArray", "timout in index retrieval (2): " + k + " tables searched. timeout = 3000"); return c; } }