better care to do not loose the merge/dump thread

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6278 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 10d3e856b5
commit 39a311d608

@ -129,7 +129,7 @@ public class IODispatcher extends Thread {
MergeJob mergeJob;
DumpJob<? extends Reference> dumpJob;
try {
loop: while (true) {
loop: while (true) try {
controlQueue.acquire();
// prefer dump actions to flush memory to disc
@ -176,11 +176,11 @@ public class IODispatcher extends Thread {
Log.logSevere("IODispatcher", "main loop in bad state, dumpQueue.size() = " + dumpQueue.size() + ", mergeQueue.size() = " + mergeQueue.size() + ", controlQueue.availablePermits() = " + controlQueue.availablePermits());
assert false : "this process statt should not be reached"; // this should never happen
} catch (Exception e) {
Log.logSevere("IODispatcher", "main run job failed (X)", e);
e.printStackTrace();
}
Log.logInfo("IODispatcher", "loop terminated");
} catch (InterruptedException e) {
Log.logSevere("IODispatcher", "main run job was interrupted (3)", e);
e.printStackTrace();
} catch (Exception e) {
Log.logSevere("IODispatcher", "main run job failed (4)", e);
e.printStackTrace();

Loading…
Cancel
Save