gargvishesh commented on code in PR #16291:
URL: https://github.com/apache/druid/pull/16291#discussion_r1670949647


##########
server/src/main/java/org/apache/druid/server/coordinator/duty/CompactSegments.java:
##########
@@ -296,6 +314,16 @@ static int 
findMaxNumTaskSlotsUsedByOneCompactionTask(@Nullable ClientCompaction
     }
   }
 
+  /**
+   * Returns the maximum number of task slots used by one MSQ compaction task 
at any time when the task is
+   * issued with the given context.
+   */
+  static int findMaxNumTaskSlotsUsedByOneMsqCompactionTask(@Nullable 
Map<String, Object> context)
+  {
+    return QueryContext.of(context).getInt(ClientMsqContext.CTX_MAX_NUM_TASKS, 
ClientMsqContext.DEFAULT_MAX_NUM_TASKS);

Review Comment:
   Updated.



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