KAFKA-18228 The MetricsDuringTopicCreationDeletionTest should delete topics to ensure that the metrics are recreated (#18163)

Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ken Huang 2024-12-14 01:35:08 +08:00 committed by GitHub
parent 161d1cdf85
commit 669d8610a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,8 @@ class MetricsDuringTopicCreationDeletionTest extends KafkaServerTestHarness with
// Delete topics
for (t <- topics if running) {
try {
adminZkClient.deleteTopic(t)
TestUtils.verifyTopicDeletion(zkClient, t, partitionNum, servers)
deleteTopic(t)
TestUtils.verifyTopicDeletion(null, t, partitionNum, servers)
} catch {
case e: Exception => e.printStackTrace()
}