Skip to content

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

Draft
pgellert wants to merge 1 commit intoredpanda-data:v25.2.xfrom
pgellert:manual-backport-29304-v25.2.x-615
Draft

[v25.2.x] CORE-14617 kafka: fix fetch session retry losing partition inclusion#29363
pgellert wants to merge 1 commit intoredpanda-data:v25.2.xfrom
pgellert:manual-backport-29304-v25.2.x-615

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 #29350

@pgellert pgellert added this to the v25.2.x-next milestone Jan 22, 2026
@pgellert pgellert added the kind/backport PRs targeting a stable branch label Jan 22, 2026
@pgellert pgellert force-pushed the manual-backport-29304-v25.2.x-615 branch from c3b9af4 to e6dd827 Compare January 22, 2026 10:40
@pgellert pgellert self-assigned this Jan 22, 2026
@pgellert pgellert requested review from a team and nguyen-andrew and removed request for a team January 22, 2026 10:43
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)
@pgellert pgellert force-pushed the manual-backport-29304-v25.2.x-615 branch from e6dd827 to 7da2330 Compare January 22, 2026 10:50
@pgellert pgellert requested review from michael-redpanda and removed request for nguyen-andrew 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
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