Jackie-Jiang commented on a change in pull request #7353:
URL: https://github.com/apache/pinot/pull/7353#discussion_r694371745
##########
File path:
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTaskRestletResource.java
##########
@@ -134,14 +134,32 @@ public StringResultResponse getTaskQueueStateDeprecated(
return _pinotHelixTaskResourceManager.getTaskStatesByTable(taskType,
tableNameWithType);
}
+ @GET
+ @Path("/tasks/{taskType}/taskcounts")
+ @ApiOperation("Fetch count of sub-tasks for each of the tasks for the given
task type")
+ public Map<String, PinotHelixTaskResourceManager.TaskCount> getTaskCounts(
+ @ApiParam(value = "Task type", required = true) @PathParam("taskType")
String taskType) {
+ return _pinotHelixTaskResourceManager.getTaskCounts(taskType);
+ }
+
@GET
@Path("/tasks/{taskType}/debug")
@ApiOperation("Fetch information for all the tasks for the given task type")
- public Map<String, PinotHelixTaskResourceManager.TaskDebugInfo>
getTaskDebugInfo(
+ public Map<String, PinotHelixTaskResourceManager.TaskDebugInfo>
getTaskDebugInfos(
Review comment:
`getTasksDebugInfo`?
--
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]