Skip to content

KAFKA-20734: Return noNode for known partitions without endpoints#22680

Open
xiaoqingwanga wants to merge 1 commit into
apache:trunkfrom
xiaoqingwanga:fix/metadata-cache-leader-missing
Open

KAFKA-20734: Return noNode for known partitions without endpoints#22680
xiaoqingwanga wants to merge 1 commit into
apache:trunkfrom
xiaoqingwanga:fix/metadata-cache-leader-missing

Conversation

@xiaoqingwanga

Copy link
Copy Markdown
Contributor

In KRaftMetadataCache, getPartitionLeaderEndpoint returns empty when the previous leader is offline after the refactor.

With this PR, the method now returns noNode when the leader partition exists, aligning with the original Scala implementation.

Changes are covered by unit tests. Please feel free to review.

@github-actions github-actions Bot added triage PRs from the community kraft small Small PRs labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kraft small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant