Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.1.x] Reproduce the OOM on fetching from many partitions #10652

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #9905

dlex added 4 commits May 10, 2023 01:36
KafConsumer has `num_records` parameter that leads to nowhere. This commit
makes it pass the specified value as `--limit-messages` argument of
`kaf consume`. Change of the default value of `num_records` does not
affect any existing code

(cherry picked from commit fdb0e58)
`max_message_bytes` is passed as the corresponding `rpk topic produce`
argument to control maximum batch size in Produce API.

(cherry picked from commit cf964b3)
Add `max.message.bytes` topic config to KCL wrapper's `create_topic`
so that it's possible to specify that parameter while using the regular
RedpandaTest way to create topics

(cherry picked from commit f84688d)
Add a test to reproduce the case when redpanda OOMs on reading at least
a single batch from each of many partitions in a fetch request, so that
the memory required to store `(partition leaders in a shard)*(batch size)`
is too much to allocate.

(cherry picked from commit 7f18d94)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone May 10, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 10, 2023
@dlex dlex marked this pull request as ready for review May 10, 2023 01:42
Copy link
Contributor

@dlex dlex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical to the original

@dlex dlex modified the milestones: v23.1.x-next, v23.1.9 May 10, 2023
@dlex dlex merged commit 4059e26 into redpanda-data:v23.1.x May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants