xiangfu0 commented on code in PR #8465: URL: https://github.com/apache/pinot/pull/8465#discussion_r848727357
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java: ########## @@ -347,7 +368,11 @@ public synchronized Set<String> getTasksInProgress(String taskType) { */ public synchronized TaskState getTaskState(String taskName) { String taskType = getTaskType(taskName); - return _taskDriver.getWorkflowContext(getHelixJobQueueName(taskType)).getJobState(getHelixJobName(taskName)); + WorkflowContext workflowContext = _taskDriver.getWorkflowContext(getHelixJobQueueName(taskType)); + if (workflowContext == null) { Review Comment: The periodic call won't help, see the same check at line 390(https://github.com/apache/pinot/pull/8465/files#diff-1ff7c17d681951c55f3f7b0540609805063b2f9ffa90df78a93e440d85445d34R390) as well. -- 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