showuon commented on code in PR #12347:
URL: https://github.com/apache/kafka/pull/12347#discussion_r920083300


##########
core/src/main/scala/kafka/log/LogManager.scala:
##########
@@ -90,6 +90,10 @@ class LogManager(logDirs: Seq[File],
   private val _liveLogDirs: ConcurrentLinkedQueue[File] = 
createAndValidateLogDirs(logDirs, initialOfflineDirs)
   @volatile private var _currentDefaultConfig = initialDefaultConfig
   @volatile private var numRecoveryThreadsPerDataDir = 
recoveryThreadsPerDataDir
+  // log dir path -> number of Remaining logs map for remainingLogsToRecover 
metric
+  private val numRemainingLogs: ConcurrentMap[String, Int] = new 
ConcurrentHashMap[String, Int]
+  // log recovery thread name -> number of remaining segments map for 
remainingSegmentsToRecover metric
+  private val numRemainingSegments: ConcurrentMap[String, Int] = new 
ConcurrentHashMap[String, Int]

Review Comment:
   Done



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