KAFKA-18245 add Flaky annotation to testMetricsDuringTopicCreateDelete (#18187)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
TengYao Chi 2024-12-15 15:48:11 +08:00 committed by GitHub
parent 0781b1bad3
commit 408ce19c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,8 @@ import kafka.utils.{Logging, TestUtils}
import scala.jdk.CollectionConverters._
import org.junit.jupiter.api.{BeforeEach, TestInfo}
import com.yammer.metrics.core.Gauge
import org.apache.kafka.server.config.{ServerConfigs, ReplicationConfigs, ServerLogConfigs}
import org.apache.kafka.common.test.api.Flaky
import org.apache.kafka.server.config.{ReplicationConfigs, ServerConfigs, ServerLogConfigs}
import org.apache.kafka.server.metrics.KafkaYammerMetrics
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ValueSource
@ -71,6 +72,7 @@ class MetricsDuringTopicCreationDeletionTest extends KafkaServerTestHarness with
*/
@ParameterizedTest
@ValueSource(strings = Array("kraft"))
@Flaky("KAFKA-18245")
def testMetricsDuringTopicCreateDelete(quorum: String): Unit = {
// For UnderReplicatedPartitions, because of https://issues.apache.org/jira/browse/KAFKA-4605