ramabme commented on a change in pull request #7353: URL: https://github.com/apache/pinot/pull/7353#discussion_r694386441
########## 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: done. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org