mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-19 08:44:42 -04:00
*) Trying to solve "de.anomic.plasma.plasmaSwitchboard.deQueue': null" Bug
See: http://www.yacy-forum.de/viewtopic.php?p=7791 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@555 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
@ -573,7 +573,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
||||
}
|
||||
|
||||
public boolean deQueue() {
|
||||
// work off fresh entries from the proxy or from the crawler
|
||||
// work off fresh entries from the proxy or from the crawler
|
||||
if (onlineCaution()) {
|
||||
log.logDebug("deQueue: online caution, omitting resource stack processing");
|
||||
return false;
|
||||
@ -587,19 +587,20 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
||||
|
||||
// do one processing step
|
||||
log.logDebug("DEQUEUE: sbQueueSize=" + sbQueue.size() +
|
||||
", coreStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_CORE) +
|
||||
", limitStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT) +
|
||||
", overhangStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_OVERHANG) +
|
||||
", remoteStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_REMOTE));
|
||||
", coreStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_CORE) +
|
||||
", limitStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT) +
|
||||
", overhangStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_OVERHANG) +
|
||||
", remoteStackSize=" + urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_REMOTE));
|
||||
try {
|
||||
nextentry = sbQueue.pop();
|
||||
if (nextentry == null) return false;
|
||||
} catch (IOException e) {
|
||||
log.logError("IOError in plasmaSwitchboard.deQueue: " + e.getMessage(), e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
processResourceStack(nextentry);
|
||||
return true;
|
||||
processResourceStack(nextentry);
|
||||
return true;
|
||||
}
|
||||
|
||||
public int cleanupJobSize() {
|
||||
|
Reference in New Issue
Block a user