File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
pinot-broker/src/main/java/org/apache/pinot/broker/broker
pinot-spi/src/main/java/org/apache/pinot/spi/utils Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2020
2121import java .util .concurrent .ArrayBlockingQueue ;
2222import java .util .concurrent .BlockingQueue ;
23+ import java .util .concurrent .LinkedBlockingQueue ;
2324import java .util .concurrent .RejectedExecutionHandler ;
2425import java .util .concurrent .ThreadPoolExecutor ;
2526import javax .ws .rs .ServiceUnavailableException ;
@@ -68,6 +69,9 @@ protected int getCorePoolSize() {
6869
6970 @ Override
7071 protected BlockingQueue <Runnable > getWorkQueue () {
72+ if (_queueSize == Integer .MAX_VALUE ) {
73+ return new LinkedBlockingQueue ();
74+ }
7175 return new ArrayBlockingQueue (_queueSize );
7276 }
7377
Original file line number Diff line number Diff line change @@ -260,8 +260,7 @@ public static class Broker {
260260 Runtime .getRuntime ().availableProcessors () * 2 ;
261261 public static final String CONFIG_OF_JERSEY_THREADPOOL_EXECUTOR_QUEUE_SIZE =
262262 "pinot.broker.jersey.threadpool.executor.queue.size" ;
263- public static final int DEFAULT_JERSEY_THREADPOOL_EXECUTOR_QUEUE_SIZE =
264- Runtime .getRuntime ().availableProcessors () * 2 ;
263+ public static final int DEFAULT_JERSEY_THREADPOOL_EXECUTOR_QUEUE_SIZE = Integer .MAX_VALUE ;
265264
266265 // used for SQL GROUP BY during broker reduce
267266 public static final String CONFIG_OF_BROKER_GROUPBY_TRIM_THRESHOLD = "pinot.broker.groupby.trim.threshold" ;
You can’t perform that action at this time.
0 commit comments