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