mirror of https://github.com/apache/druid.git
Merge pull request #2024 from metamx/fairBigTaskQueueLock
Make the TaskQueue big lock fair
This commit is contained in:
commit
020a5e7081
|
@ -76,7 +76,7 @@ public class TaskQueue
|
|||
private final TaskLockbox taskLockbox;
|
||||
private final ServiceEmitter emitter;
|
||||
|
||||
private final ReentrantLock giant = new ReentrantLock();
|
||||
private final ReentrantLock giant = new ReentrantLock(true);
|
||||
private final Condition managementMayBeNecessary = giant.newCondition();
|
||||
private final ExecutorService managerExec = Executors.newSingleThreadExecutor(
|
||||
new ThreadFactoryBuilder()
|
||||
|
|
Loading…
Reference in New Issue