FrankYang0529 commented on code in PR #19532:
URL: https://github.com/apache/kafka/pull/19532#discussion_r2059546369


##########
storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:
##########
@@ -293,6 +293,7 @@ public void resizeExpirationThreadPool(int newSize) {
     public void resizeReaderThreadPool(int newSize) {
         int currentSize = remoteStorageReaderThreadPool.getCorePoolSize();
         LOGGER.info("Updating remote reader thread pool size from {} to {}", 
currentSize, newSize);
+        remoteStorageReaderThreadPool.setMaximumPoolSize(newSize);

Review Comment:
   Sorry, I missed the decreasing thread count case. Updated 
`resizeReaderThreadPool` to handle it. Thanks.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to