kirktrue commented on code in PR #16899: URL: https://github.com/apache/kafka/pull/16899#discussion_r1823469670
########## clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java: ########## @@ -379,7 +374,24 @@ 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); Review Comment: @lianetm earlier mentioned these configuration as being invalid for the new consumer: - heartbeat.interval.ms - session.timeout.ms - group.max.session.timeout.ms - group.mix.session.timeout.ms It looks like we have the first two. Did we need to add the other two group session timeout configuration to that list? -- 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