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


##########
pinot-core/src/main/java/org/apache/pinot/core/transport/grpc/GrpcQueryServer.java:
##########
@@ -74,6 +75,8 @@ public class GrpcQueryServer extends 
PinotQueryServerGrpc.PinotQueryServerImplBa
   // hashCode changes and the map is resized, the SslContext of the old 
hashCode will be lost.
   private static final Map<Integer, SslContext> SERVER_SSL_CONTEXTS_CACHE = 
new ConcurrentHashMap<>();
 
+  private static final int DEFAULT_GRPC_QUERY_WORKER_THREAD = min(8, 
ResourceManager.DEFAULT_QUERY_WORKER_THREADS);

Review Comment:
   Math.max(1, Math.min(8, ResourceManager.DEFAULT_QUERY_WORKER_THREADS))



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