Skip to content

[v25.1.x] CORE-14617 kafka: fix fetch session retry losing partition inclusion#29364

Closed
pgellert wants to merge 1 commit into
redpanda-data:v25.1.xfrom
pgellert:manual-backport-29304-v25.1.x-456
Closed

[v25.1.x] CORE-14617 kafka: fix fetch session retry losing partition inclusion#29364
pgellert wants to merge 1 commit into
redpanda-data:v25.1.xfrom
pgellert:manual-backport-29304-v25.1.x-456

Conversation

@pgellert
Copy link
Copy Markdown
Contributor

@pgellert pgellert commented Jan 22, 2026

Backport of PR #29304

The conflict was on the cluster linking test + the nearby fetch_response_bytes_eq_units test in fetch_test.cc not existing on v25.2.x.
Fixes #29351

When fetches retry internally due to min_bytes not being satisfied,
partitions with changed metadata were incorrectly excluded from the
response. The issue was that update_fetch_partition() both checked
whether a partition should be included AND mutated the session cache.
On retry, the cache already reflected the response, so no change was
detected.

Split into partition_has_changes() for the check in set() and
update_session_partition() for the mutation in send_response().

Also re-enables the source_high_watermark check in cluster linking tests.

(cherry picked from commit b7c6970)
(cherry picked from commit 7da2330)
@pgellert pgellert added this to the v25.1.x-next milestone Jan 22, 2026
@pgellert pgellert added the kind/backport PRs targeting a stable branch label Jan 22, 2026
@pgellert pgellert self-assigned this Jan 22, 2026
@pgellert pgellert requested review from a team and michael-redpanda and removed request for a team January 22, 2026 10:52
@pgellert pgellert marked this pull request as ready for review January 22, 2026 10:52
@pgellert pgellert marked this pull request as draft January 22, 2026 11:12
@pgellert pgellert closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant