Skip to content

KAFKA-20116: Fix reporting task-(end)-offset sum for "streams" protocol - #23013

Open
mjsax wants to merge 1 commit into
apache:trunkfrom
mjsax:kafka-20116-report-task-offsets-when-group-not-ready
Open

KAFKA-20116: Fix reporting task-(end)-offset sum for "streams" protocol#23013
mjsax wants to merge 1 commit into
apache:trunkfrom
mjsax:kafka-20116-report-task-offsets-when-group-not-ready

Conversation

@mjsax

@mjsax mjsax commented Aug 1, 2026

Copy link
Copy Markdown
Member

This PR ensures that we are assembling the latest task-(end)-offset sum
snapshot only for the "streams" protocol, but not for "classic". For
"classic" the snapshot is never read, so it's unnecessary to maintain
it.

It further ensure that we refresh the task-(end)-offset sum snapshot
even if the main loop is not ready to process active tasks. The async
state-updater thread might still make progress restoring standby and
warmup tasks, so we should continue reporting the most recent metadata.

This PR ensures that we are assembling the latest task-(end)-offset sum
snapshot only for the "streams" protocol, but not for "classic".
For "classic" the snapshot is never read, so it's unnecessary to
maintain it.

It further ensure that we refresh the task-(end)-offset sum snapshot
even if the main loop is not ready to process active tasks.
The async state-updater thread might still make progress restoring
standby and warmup tasks, so we should continue reporting the
most recent metadata.
@github-actions github-actions Bot added streams small Small PRs labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant