vrajat commented on code in PR #13598:
URL: https://github.com/apache/pinot/pull/13598#discussion_r1716292146


##########
pinot-core/src/main/java/org/apache/pinot/core/accounting/PerQueryCPUMemAccountantFactory.java:
##########
@@ -286,17 +286,18 @@ public void 
setThreadResourceUsageProvider(ThreadResourceUsageProvider threadRes
     }
 
     @Override
-    public void createExecutionContextInner(@Nullable String queryId, int 
taskId, @Nullable
+    public void createExecutionContextInner(@Nullable String queryId, int 
taskId,
+        ThreadExecutionContext.TaskType taskType, @Nullable
         ThreadExecutionContext parentContext) {
       _threadLocalEntry.get()._errorStatus.set(null);
       if (parentContext == null) {
         // is anchor thread
         assert queryId != null;
-        _threadLocalEntry.get().setThreadTaskStatus(queryId, 
CommonConstants.Accounting.ANCHOR_TASK_ID,
+        _threadLocalEntry.get().setThreadTaskStatus(queryId, 
CommonConstants.Accounting.ANCHOR_TASK_ID, taskType,
             Thread.currentThread());
       } else {
         // not anchor thread
-        
_threadLocalEntry.get().setThreadTaskStatus(parentContext.getQueryId(), taskId,
+        
_threadLocalEntry.get().setThreadTaskStatus(parentContext.getQueryId(), taskId, 
taskType,

Review Comment:
   I'll give this a try



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

Reply via email to