Skip to content

KAFKA-20870: Add test for the owned-task report for a single-role assignment change - #23002

Open
mjsax wants to merge 1 commit into
apache:trunkfrom
mjsax:minor-warmup-owned-task-report-test
Open

KAFKA-20870: Add test for the owned-task report for a single-role assignment change#23002
mjsax wants to merge 1 commit into
apache:trunkfrom
mjsax:minor-warmup-owned-task-report-test

Conversation

@mjsax

@mjsax mjsax commented Jul 31, 2026

Copy link
Copy Markdown
Member

The broker reads the three owned-task lists in a StreamsGroupHeartbeat
as a report of what the member holds only when all three are non-null;
with any of them null it cannot tell that a task was released, so the
member fails to acknowledge the revocation and the group stays in
rebalancing. A change confined to one role therefore has to resend the
other two lists as well, even though they did not change.

While the client implements this already correctly, there is no explicit
test for it. The problem is, that KIP-1071 does not specify this
requirement atm. This PR adds an explicit test to avoid any accidental
regression.

…ignment change

The broker reads the three owned-task lists in a StreamsGroupHeartbeat as
a report of what the member holds only when all three are non-null; with
any of them null it cannot tell that a task was released, so the member
fails tonever acknowledges the revocation and the group stays in
rebalancing. A change confined to one role therefore has to resend the
other two lists as well, even though they did not change.

While the client implements this already correctly, there is no explicit
test for it. The problem is, that KIP-1071 does not specify this
requirement atm. This PR adds an explicit test to avoid any accidental
regression.
@github-actions github-actions Bot added consumer tests Test fixes (including flaky tests) clients small Small PRs labels Jul 31, 2026
@mjsax mjsax added the streams label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients consumer small Small PRs streams tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant