mirror of https://github.com/apache/lucene.git
LUCENE-2079: fix BG thread priority to actually take effect
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@895755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f0577a92a
commit
03a361c224
|
@ -189,7 +189,7 @@ public class TaskSequence extends PerfTask {
|
|||
bgTasks = new ArrayList<RunBackgroundTask>();
|
||||
}
|
||||
RunBackgroundTask bgTask = new RunBackgroundTask(task, letChildReport);
|
||||
bgTask.setPriority(getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
|
||||
bgTask.setPriority(task.getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
|
||||
bgTask.start();
|
||||
bgTasks.add(bgTask);
|
||||
} else {
|
||||
|
|
|
@ -121,7 +121,7 @@ public class TestPerfTasksLogic extends LuceneTestCase {
|
|||
|
||||
// disabled until we fix BG thread prio -- this test
|
||||
// causes build to hang
|
||||
public void XXXtestBGSearchTaskThreads() throws Exception {
|
||||
public void testBGSearchTaskThreads() throws Exception {
|
||||
String algLines[] = {
|
||||
"log.time.step.msec = 100",
|
||||
"log.step=100000",
|
||||
|
|
Loading…
Reference in New Issue