From 7716cc2df3adb293b24bfa537d6f419135885417 Mon Sep 17 00:00:00 2001 From: Chia Chuan Yu Date: Wed, 19 Jun 2024 09:35:10 +0800 Subject: [PATCH] KAFKA-16957 Enable KafkaConsumerTest#configurableObjectsShouldSeeGeneratedClientId to work with CLASSIC and CONSUMER (#16370) Reviewers: Kirk True , Chia-Ping Tsai --- .../org/apache/kafka/clients/consumer/KafkaConsumerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java b/clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java index cfe4d03e6a84..e1351e392eae 100644 --- a/clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java +++ b/clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java @@ -3195,8 +3195,9 @@ private void prepareJoinGroupAndVerifyReason( // TODO: this test triggers a bug with the CONSUMER group protocol implementation. // The bug will be investigated and fixed so this test can use both group protocols. @ParameterizedTest - @EnumSource(value = GroupProtocol.class, names = "CLASSIC") + @EnumSource(value = GroupProtocol.class) public void configurableObjectsShouldSeeGeneratedClientId(GroupProtocol groupProtocol) { + CLIENT_IDS.clear(); Properties props = new Properties(); props.put(ConsumerConfig.GROUP_PROTOCOL_CONFIG, groupProtocol.name()); props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9999");