Skip to content

MINOR: Validate the node id inside LocalTieredStorage#nodeId - #23020

Open
mingyen066 wants to merge 1 commit into
apache:trunkfrom
mingyen066:KAFKA-18628-follow-up
Open

MINOR: Validate the node id inside LocalTieredStorage#nodeId#23020
mingyen066 wants to merge 1 commit into
apache:trunkfrom
mingyen066:KAFKA-18628-follow-up

Conversation

@mingyen066

@mingyen066 mingyen066 commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

nodeId() returned null when neither node.id nor broker.id was
set, which left the caller responsible for the check. Throwing inside
nodeId() lets it return int instead of Integer, matching
TopicBasedRemoteLogMetadataManagerConfig#nodeId.

Reviewers: Chia-Ping Tsai chia7712@gmail.com, Ken Huang
s7133700@gmail.com

nodeId() returned null when neither node.id nor broker.id was set, which
left the caller responsible for the check. Throwing inside nodeId() lets
it return int, matching TopicBasedRemoteLogMetadataManagerConfig#nodeId.
@github-actions github-actions Bot added triage PRs from the community storage Pull requests that target the storage module tiered-storage Related to the Tiered Storage feature small Small PRs labels Aug 2, 2026

@chia7712 chia7712 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions Bot removed the triage PRs from the community label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small Small PRs storage Pull requests that target the storage module tiered-storage Related to the Tiered Storage feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants