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

Partition replicate API changes, follow up #24771

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Jan 10, 2025

This PR contains another set of changes simplifying the partition replicate API. Using a single batch API is convenient and makes replicating batches from Kafka API easier.

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
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

Now that the replicate interface is using `chunked_vector` we do not
need an intermediate vector in `replicate_batcher` to count all records.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
Signed-off-by: Michał Maślanka <michal@redpanda.com>
@mmaslankaprv mmaslankaprv force-pushed the replicate-api-follow-up branch from 5e0a971 to 8ab9f50 Compare January 10, 2025 11:06
@mmaslankaprv mmaslankaprv changed the title Replicate api follow up Partition replicate API changes, follow up Jan 10, 2025
@mmaslankaprv mmaslankaprv force-pushed the replicate-api-follow-up branch from 8ab9f50 to 3411df9 Compare January 10, 2025 14:48
Signed-off-by: Michał Maślanka <michal@redpanda.com>
Using `std::unique_ptr` wrapped batch in the produce request handlers
make moving batch less expensive.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
@mmaslankaprv mmaslankaprv force-pushed the replicate-api-follow-up branch from 3411df9 to 0941085 Compare January 10, 2025 16:25
@bharathv
Copy link
Contributor

lgtm but there is a compilation error.

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.

2 participants