Skip to content

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

Merged
pgellert merged 1 commit intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29304-v25.3.x-486
Jan 21, 2026
Merged

[v25.3.x] CORE-14617 kafka: fix fetch session retry losing partition inclusion#29349
pgellert merged 1 commit intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29304-v25.3.x-486

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #29304

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)
@vbotbuildovich vbotbuildovich added this to the v25.3.x-next milestone Jan 21, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jan 21, 2026
@pgellert pgellert self-assigned this Jan 21, 2026
@pgellert pgellert enabled auto-merge January 21, 2026 15:36
@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#79410
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
DataMigrationsApiTest test_mount_inexistent null integration https://buildkite.com/redpanda/redpanda/builds/79410#019be144-719a-408a-a334-6d508aa1942b FLAKY 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0000, p0=1.0000, reject_threshold=0.0100. adj_baseline=0.1000, p1=0.3487, trust_threshold=0.5000) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=DataMigrationsApiTest&test_method=test_mount_inexistent

@pgellert pgellert merged commit 08a6b43 into redpanda-data:v25.3.x Jan 21, 2026
20 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v25.3.x-next, v25.3.6 Jan 21, 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.

3 participants