m1a2st commented on code in PR #15808: URL: https://github.com/apache/kafka/pull/15808#discussion_r1584199554
########## core/src/test/scala/unit/kafka/log/remote/RemoteIndexCacheTest.scala: ########## @@ -1086,4 +1087,10 @@ class RemoteIndexCacheTest { case e @ (_ : NoSuchFileException | _ : UncheckedIOException) => Optional.empty() } } + + private def numThreadsRunning(threadNamePrefix: String, isDaemon: Boolean): mutable.Set[Thread] = { Review Comment: I change the function name, and modify using java set ```java private def getRunningCleanerThread: java.util.Set[Thread] = { Thread.getAllStackTraces.keySet() .stream() .filter(t => t.isAlive && t.getName.startsWith(REMOTE_LOG_INDEX_CACHE_CLEANER_THREAD)) .collect(Collectors.toSet()) } ``` -- 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