Skip to content

Conversation

@TaiJuWu
Copy link
Owner

@TaiJuWu TaiJuWu commented Nov 25, 2025

Delete this text and replace it with a detailed description of your
change. The PR title and body will become the squashed commit message.

If you would like to tag individuals, add some commentary, upload
images, or include other supplemental information that should not be
part of the eventual commit message, please use a separate comment.

If applicable, please include a summary of the testing strategy
(including rationale) for the proposed change. Unit and/or integration
tests are expected for any behavior change and system tests should be
considered for larger changes.

- Test building request with topic IDs for version 12
- Test building request with topic names for version 11
- Test version 12 requires topic IDs (throws exception without them)
- Test version 11 requires topic names (throws exception without them)
- Test canUseTopicIds parameter limits max version
- Update testGetErrorResponse to handle both version 11 and 12
…pport

Added tests for ListOffsets API version 12 topic ID support:
- testHandleListOffsetRequestWithUnknownTopicId: Tests that unknown topic IDs return UNKNOWN_TOPIC_ID error
- testHandleListOffsetRequestVersion11WithTopicName: Tests backward compatibility with version 11 using topic names
- testHandleListOffsetRequestWithTopicIdDisabled: Placeholder test for topic ID resolution (currently disabled due to metadata cache issue)

These tests verify the changes made in handleListOffsetRequest to support:
1. Topic ID resolution in version >= 12
2. Returning UNKNOWN_TOPIC_ID error for unresolvable topic IDs
3. Backward compatibility with version < 12 using topic names
@TaiJuWu TaiJuWu force-pushed the KAFKA-10549-listOffset-protocolAndServerSide branch from f0cfdee to f3d05f8 Compare November 30, 2025 12:29
@TaiJuWu TaiJuWu force-pushed the KAFKA-10549-listOffset-protocolAndServerSide branch from 0575959 to 4b69570 Compare December 1, 2025 05:11
@TaiJuWu TaiJuWu closed this Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants