mirror of
https://github.com/apache/druid.git
synced 2025-02-17 15:35:56 +00:00
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…
x
Reference in New Issue
Block a user