-
Notifications
You must be signed in to change notification settings - Fork 592
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
[v24.1.x] [CORE-5670] Pandaproxy: Avoid large allocations #21468
Merged
BenPope
merged 12 commits into
redpanda-data:v24.1.x
from
BenPope:backport-pr-21323-v24.1.x
Jul 17, 2024
Merged
[v24.1.x] [CORE-5670] Pandaproxy: Avoid large allocations #21468
BenPope
merged 12 commits into
redpanda-data:v24.1.x
from
BenPope:backport-pr-21323-v24.1.x
Jul 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's common (especially in tests) to want to get an iobuf from a string. Adds a convenience method for this. (cherry picked from commit 06ceb0d)
From post-commit review: redpanda-data#20827 (comment) Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit d5a6516)
An optimisation when parsing a body; the read chunks should already be a suitable size. Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit fac68ba)
A little drive-by fix. Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit a940e07)
Disable copy for types that hold a schema definition; replacing them with an explicit `copy()` or `share()`. Also introduce a `destructure` call to avoid `bugprone-use-after-move` Fixes [CORE-1138] Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit e189e05) Conflicts: (all due to not JSON Schema support) src/v/pandaproxy/schema_registry/json.cc src/v/pandaproxy/schema_registry/sharded_store.cc) src/v/pandaproxy/schema_registry/test/test_json_schema.cc
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit 1ded6e9)
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit 0d10035) Conflicts: (no bazel)) src/v/json/BUILD src/v/json/tests/BUILD
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit 328a8b4) Conflicts: src/v/utils/base64.cc (no base64url_to_bytes) src/v/utils/tests/BUILD (no bazel) src/v/utils/tests/base64_test.cc (no base64url_to_bytes)
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit 609db2e)
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit 0229940)
Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit aa569f8)
Also fixes [CORE-684] [CORE-4446] [CORE-4447] Signed-off-by: Ben Pope <ben@redpanda.com> (cherry picked from commit e7fab4a) Conflicts: src/v/pandaproxy/schema_registry/json.cc (no Json schema)) src/v/pandaproxy/schema_registry/types.h (no formatter)
BenPope
added
area/schema-registry
Schema Registry service within Redpanda
kind/backport
PRs targeting a stable branch
labels
Jul 17, 2024
pgellert
approved these changes
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/redpanda
area/schema-registry
Schema Registry service within Redpanda
area/wasm
WASM Data Transforms
kind/backport
PRs targeting a stable branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of PR #21323
Fixes #21466