Skip to content

Commit

Permalink
fix for NURL-fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3465 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Mar 9, 2007
1 parent 909d7a8 commit 6faa262
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/de/anomic/plasma/plasmaCrawlNURL.java
Expand Up @@ -392,14 +392,16 @@ private Entry pop(kelondroStack stack) throws IOException {
re = stack.pop();
if (re == null) {
if (s > stack.size()) continue;
throw new IOException("hash is null");
stack = kelondroStack.reset(stack); // the stack is not able to shrink
throw new IOException("hash is null, stack cannot shrink; reset of stack (1)");
}
try {
entry = new Entry(new String(re.getColBytes(0)));
} catch (IOException e) {
serverLog.logWarning("NURL", e.getMessage());
if (s > stack.size()) continue;
throw new IOException(e.getMessage());
stack = kelondroStack.reset(stack); // the stack is not able to shrink
throw new IOException("hash is null, stack cannot shrink; reset of stack (2)");
}
imageStackIndex.remove(entry.hash);
movieStackIndex.remove(entry.hash);
Expand All @@ -418,14 +420,16 @@ private Entry pop(plasmaCrawlBalancer balancer) throws IOException {
hash = balancer.pop(minimumDelta, maximumDomAge);
if (hash == null) {
if (s > balancer.size()) continue;
throw new IOException("hash is null");
balancer.clear(); // the balancer is broken and cannot shrink
throw new IOException("hash is null, balancer cannot shrink; reset of balancer (1)");
}
try {
entry = new Entry(hash);
} catch (IOException e) {
serverLog.logWarning("NURL", e.getMessage());
if (s > balancer.size()) continue;
throw new IOException(e.getMessage());
balancer.clear(); // the balancer is broken and cannot shrink
throw new IOException("hash is null, balancer cannot shrink; reset of balancer (2)");
}
imageStackIndex.remove(entry.hash);
movieStackIndex.remove(entry.hash);
Expand Down

0 comments on commit 6faa262

Please sign in to comment.