0xffff-zhiyan commented on code in PR #20481:
URL: https://github.com/apache/kafka/pull/20481#discussion_r2438281953
##########
core/src/test/scala/kafka/server/KafkaRequestHandlerTest.scala:
##########
@@ -50,6 +50,7 @@ class KafkaRequestHandlerTest {
val topic2 = "topic2"
val brokerTopicMetrics: BrokerTopicMetrics =
brokerTopicStats.topicStats(topic)
val allTopicMetrics: BrokerTopicMetrics = brokerTopicStats.allTopicsStats
+ KafkaRequestHandlerPool.aggregateThreads.set(1)
Review Comment:
Because usually `KafkaRequestHandler` instances are created through the
pool, and the pool's creation process increments `aggregateThreads`, but in our
unit test the `KafkaRequestHandler` is created independently, so the
`aggregateThreads` value remains 0, which is why we set it to 1.
--
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]