m1a2st commented on code in PR #16899: URL: https://github.com/apache/kafka/pull/16899#discussion_r1824241265
########## core/src/test/scala/integration/kafka/api/BaseConsumerTest.scala: ########## @@ -83,8 +83,10 @@ abstract class BaseConsumerTest extends AbstractConsumerTest { @MethodSource(Array("getTestQuorumAndGroupProtocolParametersAll")) def testCoordinatorFailover(quorum: String, groupProtocol: String): Unit = { val listener = new TestConsumerReassignmentListener() - this.consumerConfig.setProperty(ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG, "5001") - this.consumerConfig.setProperty(ConsumerConfig.HEARTBEAT_INTERVAL_MS_CONFIG, "1000") + if (groupProtocol.contains("CONSUMER")) { Review Comment: This is a mistake, fix it ########## clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java: ########## @@ -379,7 +378,29 @@ public class ConsumerConfig extends AbstractConfig { private static final String SECURITY_PROVIDERS_DOC = SecurityConfig.SECURITY_PROVIDERS_DOC; private static final AtomicInteger CONSUMER_CLIENT_ID_SEQUENCE = new AtomicInteger(1); + private static final List<Class<? extends AbstractPartitionAssignor>> PARTITION_ASSIGNOR_DEFAULT_VALUE = + List.of(RangeAssignor.class, CooperativeStickyAssignor.class); + /** + * A list of configuration keys for CLASSIC protocol not supported. we should check the input string and clean up the + * default value. + */ + private static final List<String> CLASSIC_PROTOCOL_UNSUPPORTED_CONFIGS = Collections.singletonList( + GROUP_REMOTE_ASSIGNOR_CONFIG + ); + + /** + * A list of configuration keys for consumer protocol not supported. we should check the input string and clean up the + * default value. + */ + private static final List<String> CONSUMER_PROTOCOL_UNSUPPORTED_CONFIGS = List.of( + PARTITION_ASSIGNMENT_STRATEGY_CONFIG, + HEARTBEAT_INTERVAL_MS_CONFIG, + SESSION_TIMEOUT_MS_CONFIG, + "group.max.session.timeout.ms", + "group.mix.session.timeout.ms" Review Comment: If use `GroupCoordinatorConfig.GROUP_MAX_SESSION_TIMEOUT_MS_CONFIG` it will have a circle dependency, thus I use string, Im not sure it a good way to do it, or we should check it at `GroupCoordinatorConfig. -- 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