Skip to content

[v26.1.x] kafka/server: cap fetch memory allocation at max message size limit - #30313

Merged
ballard26 merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30023-v26.1.x-591
May 12, 2026
Merged

[v26.1.x] kafka/server: cap fetch memory allocation at max message size limit#30313
ballard26 merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30023-v26.1.x-591

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30023

Use kafka_max_message_size_upper_limit_bytes to clamp max_bytes and
max_batch_size in fetch memory allocation instead of the full shard
fetch memory budget. This prevents a single partition with an inflated
max.message.bytes (e.g. UINT32_MAX) from monopolizing the entire
shard's fetch memory, which can starve other partitions and cause
fetch timeouts.

(cherry picked from commit 2b2c4b3)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Apr 28, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 28, 2026
@ballard26
ballard26 merged commit 80c487c into redpanda-data:v26.1.x May 12, 2026
20 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v26.1.x-next, v26.1.8 May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants