mirror of https://github.com/apache/druid.git
Make the TaskQueue big lock fair
This commit is contained in:
parent
d93640bfcb
commit
dbaaa6af92
|
@ -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