You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2025/04/14 13:06:00 UTC
[jira] [Resolved] (KAFKA-19027) Replace ConsumerGroupCommandTestUtils#generator by ClusterTestDefaults
[ https://issues.apache.org/jira/browse/KAFKA-19027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-19027.
------------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> Replace ConsumerGroupCommandTestUtils#generator by ClusterTestDefaults
> ----------------------------------------------------------------------
>
> Key: KAFKA-19027
> URL: https://issues.apache.org/jira/browse/KAFKA-19027
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Nick Guo
> Priority: Major
> Fix For: 4.1.0
>
>
> KAFKA-18329 will remove old coordinator, so `ConsumerGroupCommandTestUtils#generator` creates only one config now. Hence, we should use ClusterTestDefaults to write more readable code for tests. for example
> {code:java}
> @ClusterTestDefaults(
> types = {Type.CO_KRAFT},
> serverProperties = {
> @ClusterConfigProperty(key = OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"),
> @ClusterConfigProperty(key = OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1"),
> }
> )
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)