-
Notifications
You must be signed in to change notification settings - Fork 601
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
[CORE-8797] Improve parsing of POST /subject/{subject}/version object #24860
Merged
michael-redpanda
merged 2 commits into
redpanda-data:dev
from
michael-redpanda:bug/core-8797/sr-input-parsing
Jan 23, 2025
Merged
[CORE-8797] Improve parsing of POST /subject/{subject}/version object #24860
michael-redpanda
merged 2 commits into
redpanda-data:dev
from
michael-redpanda:bug/core-8797/sr-input-parsing
Jan 23, 2025
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
michael-redpanda
requested review from
pgellert and
BenPope
and removed request for
a team
January 17, 2025 20:28
CI test resultstest results on build#60928
test results on build#61013
test results on build#61120
|
pgellert
reviewed
Jan 20, 2025
For POST /subject/{subject}/version, updating the JSON object parsing to properly handle situations where a negative value is provided or a value greater than INT_MAX is provided. If a negative value is provided, convert it to the appropriate "invalid" type so it can be automatically determined. Signed-off-by: Michael Boquard <[email protected]>
michael-redpanda
force-pushed
the
bug/core-8797/sr-input-parsing
branch
from
January 21, 2025 21:55
e2ad518
to
2402fc5
Compare
Force push 2402fc5:
|
pgellert
previously approved these changes
Jan 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
BenPope
previously approved these changes
Jan 23, 2025
Version exhaustion can occur when attempting to insert schemas using version '0' and the maximum version for the subject is INT_MAX. This differs slightly from upstream implementation wherein the version is reused and previous instance of the version is overwritten. Signed-off-by: Michael Boquard <[email protected]>
michael-redpanda
dismissed stale reviews from BenPope and pgellert
via
January 23, 2025 18:49
821a040
michael-redpanda
force-pushed
the
bug/core-8797/sr-input-parsing
branch
from
January 23, 2025 18:49
2402fc5
to
821a040
Compare
Force push 821a040:
|
BenPope
approved these changes
Jan 23, 2025
/backport v24.3.x |
/backport v24.2.x |
/backport v24.1.x |
This was referenced Jan 23, 2025
Failed to create a backport PR to v24.1.x branch. I tried:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes: #24782
TODO:
Backports Required
Release Notes
Bug Fixes
POST /subject/{subject}/version
where version was > INT_MAX or a negative value was provided.