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.2.x] k/protocol && utils/fragmented_vector improvements #13881

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #13854

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 239a9f0)
Operator added in redpanda-data#11691

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit a2b9966)
Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit ceab400)
This is a pure refactor which will make it easier to keep
them in sync.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 3790e24)
Pure refactor to simplify the logic of calling the various
read_array types.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit 2c4d1fa)
Construct a large_fragment_vector during read_array for types
listed in `enable_fragmentation_resistance`, which is currently
`metadata_response_partition`.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit ef092e6)
Assignment from `std::vector` was introduced in redpanda-data#8469.

Now that kafka/protocol/generator can call
kafka::protocol::read_array<fragmented_vector>, this is no
longer needed, avoiding a large copy.

Signed-off-by: Ben Pope <ben@redpanda.com>
(cherry picked from commit bc63e9f)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Oct 3, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Oct 3, 2023
@BenPope BenPope marked this pull request as ready for review October 3, 2023 17:10
@BenPope BenPope self-assigned this Oct 4, 2023
@BenPope BenPope merged commit b9f6016 into redpanda-data:v23.2.x Oct 4, 2023
@RafalKorepta RafalKorepta modified the milestones: v23.2.x-next, v23.2.12 Oct 4, 2023
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