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

Serialization for sestar::chunked_fifo #10408

Merged

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Apr 27, 2023

Added serialization for ss::chunked_fifo for adl and serde

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

Release Notes

  • none

Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Added test verifying if all `std::vector`, `ss::chunked_fifo` and
`fragmented_vector`

Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Copy link
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mmaslankaprv mmaslankaprv changed the title Serialiation for sestar::chunked_fifo Serialization for sestar::chunked_fifo Apr 27, 2023
@mmaslankaprv mmaslankaprv merged commit 46d3c01 into redpanda-data:dev Apr 27, 2023
@StephanDollberg
Copy link
Member

Just to confirm my understanding, this really just serializes the values (plus a size header) out and not the struct itself?

@rockwotj
Copy link
Contributor

Correct! The nice part about this sort of format is that it doesn't tie you into a specific struct on the deserialization end, which gives compatibility if we want to change data structures in places later on. Most of the collections have this same format.

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.

3 participants