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

Fix an oversized alloc in cluster_config schema endpoint #23773

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

StephanDollberg
Copy link
Member

After some fixes to the seastar json encoder we can now use
ss::json::stream_object avoiding oversized allocs that get triggered by using
plain ss::json::json_return_type.

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

Release Notes

  • none

@StephanDollberg
Copy link
Member Author

Requires https://github.com/redpanda-data/vtools/pull/3213 on the cmake side

@StephanDollberg StephanDollberg force-pushed the stephan/fix-cluster-config-oversized branch from 91d18d2 to c231284 Compare October 16, 2024 10:24
This uses zero copy encoding into the output stream avoiding oversized
allocations.

Ref CORE-7802
@StephanDollberg StephanDollberg force-pushed the stephan/fix-cluster-config-oversized branch from c231284 to 7b4cfb0 Compare October 21, 2024 08:28
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 21, 2024
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 21, 2024
@redpanda-data redpanda-data deleted a comment from travisdowns Oct 21, 2024
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Oct 21, 2024
@vbotbuildovich
Copy link
Collaborator

@StephanDollberg StephanDollberg merged commit ecc3908 into dev Oct 21, 2024
17 checks passed
@StephanDollberg StephanDollberg deleted the stephan/fix-cluster-config-oversized branch October 21, 2024 13:02
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