Repository navigation
[improve][schema] Change update schema auth from tenant to produce - #18074
Merged
Technoboy- merged 2 commits intoOct 19, 2022
Merged
Technoboy- merged 2 commits into
Technoboy- merged 2 commits into
Conversation
congbobo184
requested review from
RobertIndie,
Technoboy-,
codelipenghui,
eolivelli,
gaoran10,
liangyepianzhou,
mattisonchao and
nodece
October 17, 2022 13:47
nodece
reviewed
Oct 17, 2022
| assertThrows(PulsarAdminException.class, () -> adminWithoutPermission.schemas().createSchema(topicName, si)); | ||
| adminWithAdminPermission.schemas().createSchema(topicName, si); | ||
| assertThrows(PulsarAdminException.class, () -> adminWithConsumePermission.schemas().getSchemaInfo(topicName)); | ||
| adminWithProducePermission.schemas().createSchema(topicName, si); |
Member
There was a problem hiding this comment.
Please keep the old test, and then append a new test.
Technoboy-
reviewed
Oct 18, 2022
| }); | ||
| }); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
Make this reusable, right?
Member
|
This PR also should sync to branch-2.9 and branch-2.10. |
Codecov Report
@@ Coverage Diff @@
## master #18074 +/- ##
=============================================
+ Coverage 34.91% 52.47% +17.56%
- Complexity 5707 7284 +1577
=============================================
Files 607 393 -214
Lines 53396 43419 -9977
Branches 5712 4465 -1247
=============================================
+ Hits 18644 22786 +4142
+ Misses 32119 18139 -13980
+ Partials 2633 2494 -139
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Technoboy-
approved these changes
Oct 19, 2022
nodece
approved these changes
Oct 19, 2022
Contributor
|
@congbobo184 Could you please help cherry-pick this PR to branch-2.10 and branch-2.9? It will help users who want to create topics by Admin API, but the tenant admin is required before upgrading to 2.11.0. |
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 10, 2023
…pache#18074) (cherry picked from commit 26b47ff) (cherry picked from commit 3b9f854)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 11, 2023
…pache#18074) (cherry picked from commit 26b47ff) (cherry picked from commit 3b9f854)
This file contains hidden or 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
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.
discuss: https://lists.apache.org/thread/0ts6josxxq4gt3qw2toxf9jd77d7s6kj
Motivation
Now, we have two authentications for updating the schema
produce or consume when open autoUpdateSchema
This will produce problems when using different authentications to
update the schema.
Modification
Documentation
doc-not-neededMatching PR in the forked repository
PR in forked repository: