chia7712 commented on a change in pull request #11006:
URL: https://github.com/apache/kafka/pull/11006#discussion_r668859528



##########
File path: core/src/main/scala/kafka/log/LogManager.scala
##########
@@ -406,6 +398,18 @@ class LogManager(logDirs: Seq[File],
     info(s"Loaded $numTotalLogs logs in ${time.hiResClockMs() - startMs}ms.")
   }
 
+  private def logDirExecutor(logDirAbsolutePath: String, threadNamePrefix: 
String): ExecutorService = {
+    Executors.newFixedThreadPool(numRecoveryThreadsPerDataDir, new 
ThreadFactory {

Review comment:
       How about using following style?
   ```scala
   Executors.newFixedThreadPool(numRecoveryThreadsPerDataDir, 
KafkaThread.nonDaemon(s"$threadNamePrefix-$logDirAbsolutePath", _))
   ```




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