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.3.x] cluster: Avoid oversize allocs for topic creation and configuration #17012

Merged
merged 5 commits into from
Mar 12, 2024

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Mar 12, 2024

Backport of PR #16982
Fixes: #16993

A future PR will use `chunked_vector` in addition to `std::vector`

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit f524df7)
Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 12daecc)
Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 99247c5)
@BenPope BenPope added kind/backport PRs targeting a stable branch area/oversized-allocation labels Mar 12, 2024
@BenPope BenPope added this to the v23.3.x-next milestone Mar 12, 2024
@BenPope BenPope self-assigned this Mar 12, 2024
`topic_configuration` is 392 bytes
`custom_assignable_topic_configuration`	is 416 bytes

Switch vectors of them to `chunked_vector`

Fixes redpanda-data#16758

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit d58c9fa)

Conflicts:
  src/v/compat/cluster_generator.h (didn't provide the size)
`topic_properties_update` is 456 bytes.

Switch it to from `std::vector` to `chunked_vector`.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 9191f39)
@BenPope BenPope merged commit a16674d into redpanda-data:v23.3.x Mar 12, 2024
16 checks passed
@BenPope BenPope modified the milestones: v23.3.x-next, v23.3.8 Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants