Skip to content

feat: refresh cluster metadata asynchronously on stale errors - #1437

Open
davidpst wants to merge 2 commits into
segmentio:mainfrom
InditexTech:main
Open

feat: refresh cluster metadata asynchronously on stale errors#1437
davidpst wants to merge 2 commits into
segmentio:mainfrom
InditexTech:main

Conversation

@davidpst

@davidpst davidpst commented Jun 11, 2026

Copy link
Copy Markdown

Refreshes the cached cluster metadata asynchronously when a round trip
signals it's stale (network errors, routing failures, or stale-metadata
error codes on Produce/Fetch), so retries reach the new leader instead of
waiting for TTL expiry. Non-blocking and throttled to 1 refresh/s.

Fixes #1221 Related to #1374, #1413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WriteMessages can force metadata updates when occur NotLeaderForPartition error

1 participant