xiangfu0 commented on code in PR #18975:
URL: https://github.com/apache/pinot/pull/18975#discussion_r4244765343


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java:
##########
@@ -1294,11 +1294,12 @@ private synchronized TaskDebugInfo 
getTaskDebugInfo(WorkflowContext workflowCont
         String taskIdForPartition = 
jobContext.getTaskIdForPartition(partition);
         TaskPartitionState partitionState = 
jobContext.getPartitionState(partition);
         TaskConfig helixTaskConfig = 
jobConfig.getTaskConfig(taskIdForPartition);
-        PinotTaskConfig pinotTaskConfig = null;
-        if (helixTaskConfig != null) {
-          pinotTaskConfig = 
PinotTaskConfig.fromHelixTaskConfig(helixTaskConfig);
-          if ((tableNameWithType != null) && 
(!tableNameWithType.equals(pinotTaskConfig.getTableName()))) {
-            // Filter task configs that match this table name
+        PinotTaskConfig pinotTaskConfig =
+            helixTaskConfig != null ? 
PinotTaskConfig.fromHelixTaskConfig(helixTaskConfig) : null;
+        if (tableNameWithType != null) {
+          // A table filter was requested, so keep only subtasks confirmably 
belonging to that table. A missing Helix

Review Comment:
   Expanded the PR description to state the behavior change explicitly: 
table-filtered debug results drop subtasks with missing Helix config or 
unresolved table ownership instead of retaining them. Task-level debug metadata 
remains cluster-wide; this response filter does not grant table-scoped access 
to the task-name debug endpoint.
   
   Addressed in `6b0ece6f8c`. Validation: 31 focused tests passed, plus 
affected-module formatting, Checkstyle, and license checks.



-- 
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]

Reply via email to