sodonnel commented on a change in pull request #3168:
URL: https://github.com/apache/ozone/pull/3168#discussion_r823925594



##########
File path: 
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
##########
@@ -1733,10 +1733,11 @@ public ExecutorService getECReconstructExecutor() {
           ecReconstructExecutor = new ThreadPoolExecutor(
               EC_RECONSTRUCT_STRIPE_READ_POOL_MIN_SIZE,
               clientConfig.getEcReconstructStripeReadPoolLimit(),
-              60, TimeUnit.SECONDS, new LinkedBlockingQueue<>(),
+              60, TimeUnit.SECONDS, new SynchronousQueue<>(),

Review comment:
       OK, thanks for the explanation - I was not away the 
`LinkedBlockingQueue` would prevent the threadpool growing unless the queue was 
full, but reading the Java doc, you are correct. Seems like a 
`SynchronousQueue` is the best way to get what we want. 




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