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

use chunked vector as batches cache in raft::replicate_batcher #17425

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Mar 27, 2024

Using fragmented_vector to store batches in raft::replicate_batcher to avoid large allocations.

Fixes: #16944
Fixes: #16945

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x

Release Notes

  • none

rockwotj
rockwotj previously approved these changes Mar 27, 2024
src/v/raft/replicate_batcher.cc Outdated Show resolved Hide resolved
rockwotj
rockwotj previously approved these changes Mar 27, 2024
rockwotj
rockwotj previously approved these changes Mar 28, 2024
src/v/model/record_batch_reader.h Outdated Show resolved Hide resolved
Made all fragmented memory reader helper functions generic so that they
can be used with fragmented vector of different fragment sizes.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
Using `fragmented_vector` to store batches in `raft::replicate_batcher`
to avoid large allocations.

Fixes: redpanda-data#16944
Fixes: redpanda-data#16945

Signed-off-by: Michał Maślanka <michal@redpanda.com>
@mmaslankaprv
Copy link
Member Author

ci failure: #12897

@mmaslankaprv mmaslankaprv merged commit 952b8c9 into redpanda-data:dev Mar 28, 2024
17 checks passed
@mmaslankaprv mmaslankaprv deleted the fix-batcher-large-alloc branch March 28, 2024 20:06
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

@vbotbuildovich
Copy link
Collaborator

Failed to create a backport PR to v23.3.x branch. I tried:

git remote add upstream https://github.com/redpanda-data/redpanda.git
git fetch --all
git checkout -b backport-pr-17425-v23.3.x-124 remotes/upstream/v23.3.x
git cherry-pick -x 9212eed8c8b903fef3f115bfce1575443b402103 6b880ec89e9097cefc69a755ffe0f41611c5db51

Workflow run logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants