gortiz commented on code in PR #15445: URL: https://github.com/apache/pinot/pull/15445#discussion_r2028243221
########## pinot-query-runtime/src/main/java/org/apache/pinot/query/service/server/QueryServer.java: ########## @@ -159,37 +164,49 @@ public void submit(Worker.QueryRequest request, StreamObserver<Worker.QueryRespo return; } - try (QueryThreadContext.CloseableContext queryTlClosable = QueryThreadContext.openFromRequestMetadata(reqMetadata); + try (QueryThreadContext.CloseableContext qTlClosable = QueryThreadContext.openFromRequestMetadata(reqMetadata); Review Comment: Probably ThreadLocal, but I don't remember. Anyway, I've just renamed them ########## pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java: ########## @@ -898,10 +898,33 @@ public static class Server { public static final int DEFAULT_MSE_MIN_GROUP_TRIM_SIZE = 5000; // TODO: Merge this with "mse" + /** + * The ExecutorServiceProvider to use for execution threads, which are the ones that execute + * MultiStageOperators (and SSE operators in the leaf stages). + * + * It is recommended to use cached. In case fixed is used, it should use a large enough number of threads or + * parent operators may consume all threads. + * In Java 21 or newer, virtual threads are a good solution. Although Apache Pinot doesn't include this option yet, + * it is trivial to implement that plugin. + * + * See QueryRunner + */ public static final String MULTISTAGE_EXECUTOR = "multistage.executor"; public static final String MULTISTAGE_EXECUTOR_CONFIG_PREFIX = QUERY_EXECUTOR_CONFIG_PREFIX + "." + MULTISTAGE_EXECUTOR; public static final String DEFAULT_MULTISTAGE_EXECUTOR_TYPE = "cached"; + /** + * The ExecutorServiceProvider to be used for submission threads, which are the ones + * that receive requests in protobuf and transform them into MultiStageOperators. + * + * It is recommended to use a fixed thread pool here, although defaults to cached for historical + * reasons. + * + * See QueryServer + */ + public static final String MULTISTAGE_SUBMISSION_EXEC_CONFIG_PREFIX = + QUERY_EXECUTOR_CONFIG_PREFIX + "." + MULTISTAGE_EXECUTOR; Review Comment: Fixed -- 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