Skip to content

[v25.3.x] kafka/server: cap fetch memory allocation at max message size limit#30314

Open
vbotbuildovich wants to merge 1 commit intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-30023-v25.3.x-890
Open

[v25.3.x] kafka/server: cap fetch memory allocation at max message size limit#30314
vbotbuildovich wants to merge 1 commit intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-30023-v25.3.x-890

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 v25.3.x-next milestone Apr 28, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 28, 2026
@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

Retry command for Build#83728

please wait until all jobs are finished before running the slash command

/ci-repeat 1
skip-redpanda-build
skip-units
skip-rebase
tests/rptest/tests/data_transforms_test.py::DataTransformsLoggingTest.test_log_topic_integrity

@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#83728
test_status test_class test_method test_arguments test_kind job_url passed reason test_history
FLAKY(FAIL) DataTransformsLoggingTest test_log_topic_integrity null integration https://buildkite.com/redpanda/redpanda/builds/83728#019dd217-ac36-4c85-a98b-030ee469a8d2 8/11 Test FAILS after retries.Significant increase in flaky rate(baseline=0.0000, p0=0.0000, reject_threshold=0.0100) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=DataTransformsLoggingTest&test_method=test_log_topic_integrity

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.

2 participants