peterxcli commented on code in PR #17859:
URL: https://github.com/apache/kafka/pull/17859#discussion_r1849596423


##########
core/src/main/scala/kafka/server/DynamicBrokerConfig.scala:
##########
@@ -1167,6 +1167,22 @@ class DynamicRemoteLogConfig(server: KafkaBroker) 
extends BrokerReconfigurable w
           throw new ConfigException(s"$errorMsg, value should be at least 1")
         }
       }
+
+      if 
(RemoteLogManagerConfig.REMOTE_LOG_MANAGER_COPIER_THREAD_POOL_SIZE_PROP.equals(k)
 ||
+        
RemoteLogManagerConfig.REMOTE_LOG_MANAGER_EXPIRATION_THREAD_POOL_SIZE_PROP.equals(k)
 ||
+        RemoteLogManagerConfig.REMOTE_LOG_READER_THREADS_PROP.equals(k)) {
+        val newValue = v.asInstanceOf[Int]
+        val oldValue = server.config.getInt(k)
+        if (newValue != oldValue) {
+          val errorMsg = s"Dynamic thread count update validation failed for 
$k=$v"
+          if (newValue <= 0)

Review Comment:
   I guess the only scenario where the user might want to set it back is if 
they want all three thread pools to follow the changes to 
`REMOTE_LOG_MANAGER_THREAD_POOL_SIZE_PROP` simultaneously.
   
   Therefore, if we allow the user to do this, I think we should also make 
`REMOTE_LOG_MANAGER_THREAD_POOL_SIZE_PROP` dynamically configurable.
   
   What are your thoughts on this?



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

Reply via email to