Lucas Brutschy created KAFKA-20306:
--------------------------------------

             Summary: StreamsGroupCommand does not display committed offsets 
for repartition topics
                 Key: KAFKA-20306
                 URL: https://issues.apache.org/jira/browse/KAFKA-20306
             Project: Kafka
          Issue Type: Task
          Components: streams
            Reporter: Lucas Brutschy
            Assignee: Alieh Saeedi


The kafka-streams-groups.sh tool does not display committed offsets for 
repartition topics when using the --describe --verbose option. Repartition 
topic offsets show as '-' instead of actual values. The root cause is in 
StreamsGroupCommand.getCommittedOffsets(), which filters committed offsets to 
only include topics from subtopology.sourceTopics(). Repartition topics are not 
source topics — they are in repartitionSourceTopics(). This causes their 
committed offsets to be dropped from the output. Meanwhile, 
getTopicPartitions() correctly includes both sourceTopics() and 
repartitionSourceTopics() when determining which topic-partitions to display, 
so repartition topics appear in the output but without their offset data. The 
fix is to also include repartitionSourceTopics() in the filter in 
getCommittedOffsets(), consistent with what getTopicPartitions() already does.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to