-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][broker] Fix the breaking change of standalone metadata initialization #18909
[fix][broker] Fix the breaking change of standalone metadata initialization #18909
Conversation
…zation ### Motivation Fix the regression brought by apache#15186. See https://lists.apache.org/thread/vz3tqpgs5l1r0trq29r4hdf85t0rjc8j for details. ### Modifications Use `PulsarAdmin` to initialize the metadata so that it would fail if the authentication of the built-in clients were not configured correctly. Add a `testMetadataInitialization` to avoid the regression. And move the bundle policy test from `SmokeTest` to this test. xxx
When cherry-picking this PR to branch-2.11, we need to push another commit to update the Change $PULSAR_DIR/bin/pulsar-admin tenants update public -r "anonymous" -c "standalone"
# Update "public/default" with no auth required to $PULSAR_DIR/bin/pulsar-admin tenants create public -r "anonymous" -c "standalone"
# Create "public/default" with no auth required
$PULSAR_DIR/bin/pulsar-admin namespaces create public/default /cc @Technoboy- |
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.
+1
Codecov Report
@@ Coverage Diff @@
## master #18909 +/- ##
============================================
+ Coverage 48.59% 53.52% +4.93%
+ Complexity 8385 7756 -629
============================================
Files 494 414 -80
Lines 54445 44692 -9753
Branches 5812 4576 -1236
============================================
- Hits 26458 23923 -2535
+ Misses 24968 18190 -6778
+ Partials 3019 2579 -440
Flags with carried forward coverage won't be shown. Click here to find out more. |
Motivation
Fix the regression brought by #15186. See
https://lists.apache.org/thread/vz3tqpgs5l1r0trq29r4hdf85t0rjc8j for details.
Modifications
Use
PulsarAdmin
to initialize the metadata so that it would fail if the authentication of the built-in clients were not configured correctly.Add a
testMetadataInitialization
to avoid the regression. And move the bundle policy test fromSmokeTest
to this test.Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: BewareMyPower#14