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

storage: coalesce and rename record batch disk serialization methods #17357

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Mar 24, 2024

Renames some on-disk serialization methods for record batch headers to clarify that they're used for batch headers, and that the serialization is meant for on-disk serialization.

Also moves/renames from segment_appender_utils to a new record_batch_utils, since they're used beyond the scope of the segment appender.

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

In the future, there will be more kinds of headers stored on disk. To
clarify, this changes the name to batch_header_to_disk_iobuf.
The utilities are used in the appender, but are used broadly for generic
serialization from disk. This renames the corresponding files to
record_batch_utils.*.
Puts it together with the corresponding serialization utils.
Similar to the corresponding serialization method, adds a name that
clarifies the kind of header and the kind of serialization.
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Mar 24, 2024

@andrwng andrwng requested review from dotnwat and Lazin March 24, 2024 04:45
@dotnwat dotnwat merged commit 3f8df58 into redpanda-data:dev Mar 26, 2024
19 checks passed
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

3 participants