-
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
[CORE-60] Schema Registry: Support /mode
#17952
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c999928
pandaproxy/error: Introduce error_codes for mode
BenPope 5fb72fc
schema_registry/error: Document error_info
BenPope 452556b
schema_registry/error: Introduce error_codes for mode
BenPope 88e1993
schema_registry/types: Introduce is_mutable
BenPope ba05b97
schema_registry/config: Introduce mode_mutability
BenPope 390fc71
schema_registry: Wire-up mode_mutability
BenPope 7aa34ff
schema_registry/types: Introduce mode
BenPope 71c5fef
schema_registry/store: Introduce has_subjects
BenPope 6ce966f
schema_registry/store: Support mode
BenPope 2776733
schema_registry/types: Add sequence_marker_type::mode
BenPope 282854b
schema_registry/storage: Support consuming mode records
BenPope 8b0915f
schema_registry/seq_writer: Avoid unhandled exception
BenPope b55d09e
schema_registry/storage: Support writing mode records
BenPope ccdb7d6
schema_registry: Support mode endpoints
BenPope 6f2f894
schema_registry/dt: Refactor SchemaRegistryBasicAuthTest
BenPope dc8c2e4
schema_registry: Require superuser to mutate /mode
BenPope dd6c831
schema_registry: Support mode - readonly
BenPope 19e51c9
schema_registry/swagger: Fix typo
BenPope File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
From the description for the query param
and the endpoint (without the query param)
Does
defaultToGlobal
mean, if there is no specific mode set for the subject, return the global mode instead? I wasn't sure what "specific override" was referring toThere 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.
Yeah, so the global mode is in force for all subjects, unless a subject has a mode set, in which case that will override whatever is global, for the subject.
To query whether a subject has a mode set, either don't specify
defaultToGlobal=true
, or specifydefaultToGlobal=false
, and detect the success or error.But if you're just querying what mode is in force, specify
defaultToGlobal=true
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.
@kbatuigas I added some short descriptions for the parameters.