mirror of https://github.com/apache/druid.git
Reduce contention in HttpRemoteTaskRunner.getKnownTasks() (#14541)
This commit is contained in:
parent
dd78e00dc5
commit
d63eff3b1b
|
@ -1431,11 +1431,10 @@ 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());
|
||||
}
|
||||
return ImmutableList.copyOf(tasks.values());
|
||||
}
|
||||
|
||||
@SuppressWarnings("GuardedBy") // Read on tasks is safe
|
||||
|
|
Loading…
Reference in New Issue