Skip to content

[v26.1.x] cloud_topics: skip reset_size_checksum_metadata() in batch building path#31019

Open
vbotbuildovich wants to merge 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30981-v26.1.x-110
Open

[v26.1.x] cloud_topics: skip reset_size_checksum_metadata() in batch building path#31019
vbotbuildovich wants to merge 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30981-v26.1.x-110

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30981

…ng path

We set a bunch of headers after the call to `record_batch_builder::build()`
and invoke `reset_size_checksum_metadata()`, so there is no point to paying
the price of this function twice.

Add a flag to `record_batch_builder::build()` to allow the user to skip the
CRC32 encoding of the batch's records & headers when the compression mode is
`compression::none`.

(cherry picked from commit 0231072)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Jul 4, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 4, 2026
@vbotbuildovich vbotbuildovich requested a review from WillemKauf July 4, 2026 12:36
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.

2 participants