elloooooo commented on a change in pull request #8450: get active task by
datasource when supervisor discover tasks
URL: https://github.com/apache/incubator-druid/pull/8450#discussion_r326937721
##########
File path:
indexing-service/src/main/java/org/apache/druid/indexing/overlord/HeapMemoryTaskStorage.java
##########
@@ -194,6 +194,26 @@ public void setStatus(TaskStatus status)
}
}
+ @Override
+ public List<Task> getActiveTasksByDatasource(String datasource)
+ {
+ giant.lock();
+
+ try {
+ final ImmutableList.Builder<Task> listBuilder = ImmutableList.builder();
+ tasks.values()
+ .stream()
Review comment:
It make sense and I will change it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]