mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 19:15:06 +00:00
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>();
|
bgTasks = new ArrayList<RunBackgroundTask>();
|
||||||
}
|
}
|
||||||
RunBackgroundTask bgTask = new RunBackgroundTask(task, letChildReport);
|
RunBackgroundTask bgTask = new RunBackgroundTask(task, letChildReport);
|
||||||
bgTask.setPriority(getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
|
bgTask.setPriority(task.getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
|
||||||
bgTask.start();
|
bgTask.start();
|
||||||
bgTasks.add(bgTask);
|
bgTasks.add(bgTask);
|
||||||
} else {
|
} else {
|
||||||
|
@ -121,7 +121,7 @@ public class TestPerfTasksLogic extends LuceneTestCase {
|
|||||||
|
|
||||||
// disabled until we fix BG thread prio -- this test
|
// disabled until we fix BG thread prio -- this test
|
||||||
// causes build to hang
|
// causes build to hang
|
||||||
public void XXXtestBGSearchTaskThreads() throws Exception {
|
public void testBGSearchTaskThreads() throws Exception {
|
||||||
String algLines[] = {
|
String algLines[] = {
|
||||||
"log.time.step.msec = 100",
|
"log.time.step.msec = 100",
|
||||||
"log.step=100000",
|
"log.step=100000",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user