sanghyeok An created KAFKA-21694:
------------------------------------

             Summary: Consider splitting GroupMetadataManagerTest by group type
                 Key: KAFKA-21694
                 URL: https://issues.apache.org/jira/browse/KAFKA-21694
             Project: Kafka
          Issue Type: Improvement
          Components: group-coordinator
            Reporter: sanghyeok An
            Assignee: sanghyeok An


{{GroupMetadataManagerTest}} is now approximately 41,000 lines long and covers 
classic, consumer, share, and streams groups in a single class. This makes it 
difficult to find tests for a particular group type and to decide where to add 
new ones.

One option is to move tests specific to each group type into a dedicated class 
and keep tests for shared behavior and transitions between group types in 
{{{}GroupMetadataManagerTest{}}}. The new classes can reuse 
{{GroupMetadataManagerTestContext}} for common setup and helpers.

 

*Precedent*

{{KafkaAdminClientTest}} was split along similar lines, with dedicated classes 
for consumer, share, and streams group tests. [Apache Kafka PR #22339 
(https://github.com/apache/kafka/pull/22339)|https://github.com/apache/kafka/pull/22339]



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to