mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
Reduce contention in HttpRemoteTaskRunner.getKnownTasks() (#14541)
This commit is contained in:
parent
dd78e00dc5
commit
d63eff3b1b
@ -1431,12 +1431,11 @@ public class HttpRemoteTaskRunner implements WorkerTaskRunner, TaskLogStreamer
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("GuardedBy") // Read on tasks is safe
|
||||
public Collection<? extends TaskRunnerWorkItem> getKnownTasks()
|
||||
{
|
||||
synchronized (statusLock) {
|
||||
return ImmutableList.copyOf(tasks.values());
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("GuardedBy") // Read on tasks is safe
|
||||
public Collection<? extends TaskRunnerWorkItem> getCompletedTasks()
|
||||
|
Loading…
x
Reference in New Issue
Block a user