kfaraz commented on code in PR #16098:
URL: https://github.com/apache/druid/pull/16098#discussion_r1946053719
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskQueue.java:
##########
@@ -1024,6 +1024,24 @@ List<Task> getTasks()
}
}
+ /**
+ * Returns the list of currently active tasks for the given datasource.
+ */
+ public List<Task> getActiveTasksForDatasource(String datasource)
+ {
+ giant.lock();
Review Comment:
The operations are simple and thus fast enough, so it's okay (and also
necessary) to hold the giant lock.
--
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]