shounakmk219 commented on code in PR #15118: URL: https://github.com/apache/pinot/pull/15118#discussion_r1968914476
########## pinot-minion/src/main/java/org/apache/pinot/minion/api/resources/PinotTaskProgressResource.java: ########## @@ -143,4 +144,36 @@ public String getSubtaskProgress( .build()); } } + + @GET + @Path("/tasks/subtask/progressStats") + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation("Get task progress stats tracked for the given subtasks") + @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success"), @ApiResponse(code = 500, message = "Internal server error") + }) + public String getSubtaskProgressStats( + @ApiParam(value = "Sub task name") @QueryParam("subtaskName") String subtaskName) { + try { + if (LOGGER.isDebugEnabled()) { + LOGGER.debug("Getting progress stats for subtask: {}", subtaskName); + } + Map<String, MinionTaskBaseObserverStats> progressStatsMap = new HashMap<>(); + MinionEventObserver observer = MinionEventObservers.getInstance().getMinionEventObserver(subtaskName); + MinionTaskBaseObserverStats progressStats = observer.getProgressStats(); Review Comment: Yes it will, my bad. Will fix it, thanks for catching 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. 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