AmatyaAvadhanula commented on code in PR #15377:
URL: https://github.com/apache/druid/pull/15377#discussion_r1393841888
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskStorageQueryAdapter.java:
##########
@@ -104,7 +104,14 @@ public List<TaskStatusPlus> getTaskStatusPlusList(
public Optional<Task> getTask(final String taskid)
{
- return storage.getTask(taskid);
+ // Try to fetch active task from memory
+ final Task activeTask = taskLockbox.getActiveTask(taskid);
Review Comment:
Thanks, I've ensured that the call happens within a lock in the new
TaskQueue method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]