mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fix for search process
This commit is contained in:
parent
f5a17d4a8b
commit
52184a1170
|
@ -131,7 +131,7 @@ public final class RWIProcess extends Thread
|
|||
this.protocolNavigator = new ConcurrentScoreMap<String>();
|
||||
this.filetypeNavigator = new ConcurrentScoreMap<String>();
|
||||
this.ref = new ConcurrentScoreMap<String>();
|
||||
this.feeders = new AtomicInteger(1);
|
||||
this.feeders = new AtomicInteger(0);
|
||||
this.startTime = System.currentTimeMillis();
|
||||
this.maxExpectedRemoteReferences = new AtomicInteger(0);
|
||||
this.expectedRemoteReferences = new AtomicInteger(0);
|
||||
|
|
|
@ -166,7 +166,9 @@ public class SnippetProcess {
|
|||
// finally wait until enough results are there produced from the snippet fetch process
|
||||
WeakPriorityBlockingQueue.Element<ResultEntry> entry = null;
|
||||
while (System.currentTimeMillis() < finishTime) {
|
||||
|
||||
|
||||
//Log.logInfo("SnippetProcess", "item = " + item + "; anyWorkerAlive=" + anyWorkerAlive() + "; this.rankingProcess.isAlive() = " + this.rankingProcess.isAlive() + "; this.rankingProcess.feedingIsFinished() = " + this.rankingProcess.feedingIsFinished() + "; this.result.sizeAvailable() = " + this.result.sizeAvailable() + ", this.rankingProcess.sizeQueue() = " + this.rankingProcess.sizeQueue());
|
||||
|
||||
if (!anyWorkerAlive() && !this.rankingProcess.isAlive() && this.result.sizeAvailable() + this.rankingProcess.sizeQueue() <= item && this.rankingProcess.feedingIsFinished()) {
|
||||
//Log.logInfo("SnippetProcess", "interrupted result fetching; item = " + item + "; this.result.sizeAvailable() = " + this.result.sizeAvailable() + ", this.rankingProcess.sizeQueue() = " + this.rankingProcess.sizeQueue());
|
||||
break; // the fail case
|
||||
|
|
Loading…
Reference in New Issue
Block a user