showuon commented on code in PR #15122: URL: https://github.com/apache/kafka/pull/15122#discussion_r1441465315
########## core/src/test/scala/unit/kafka/server/KafkaApisTest.scala: ########## @@ -1388,20 +1388,23 @@ class KafkaApisTest extends Logging { topics.foreach(topic => { val metadataRequestData = new MetadataRequestData().setTopics(Collections.singletonList(topic)) val request = buildRequest(new MetadataRequest(metadataRequestData, version.toShort)) - kafkaApis = createKafkaApis() Review Comment: This `kafkaApis` will be created multiple times in this test, so we have to close them 1 by 1 inside the test. -- 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