Skip to content

[fix][broker] Fix the breaking change of standalone metadata initialization - #18909

Merged
Technoboy- merged 2 commits into
apache:masterfrom
BewareMyPower:bewaremypower/ns-policies
Dec 14, 2022
Merged

[fix][broker] Fix the breaking change of standalone metadata initialization#18909
Technoboy- merged 2 commits into
apache:masterfrom
BewareMyPower:bewaremypower/ns-policies

Conversation

@BewareMyPower

Copy link
Copy Markdown
Contributor

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 from SmokeTest to this test.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: BewareMyPower#14

…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
@BewareMyPower BewareMyPower added release/blocker Indicate the PR or issue that should block the release until it gets resolved release/2.11.0 labels Dec 13, 2022
@BewareMyPower BewareMyPower self-assigned this Dec 13, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Dec 13, 2022
@BewareMyPower

Copy link
Copy Markdown
Contributor Author

When cherry-picking this PR to branch-2.11, we need to push another commit to update the pulsar-client-cpp/pulsar-test-service-start.sh.

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-

@BewareMyPower BewareMyPower added this to the 2.11.0 milestone Dec 13, 2022

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@codecov-commenter

codecov-commenter commented Dec 13, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.83%. Comparing base (01e7eac) to head (f3cb0a7).
⚠️ Report is 3130 commits behind head on master.

Files with missing lines Patch % Lines
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% 20 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18909      +/-   ##
============================================
+ Coverage     48.59%   48.83%   +0.23%     
- Complexity     8385     9093     +708     
============================================
  Files           494      554      +60     
  Lines         54445    59202    +4757     
  Branches       5812     6345     +533     
============================================
+ Hits          26458    28911    +2453     
- Misses        24968    27035    +2067     
- Partials       3019     3256     +237     
Flag Coverage Δ
unittests 48.83% <0.00%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% <0.00%> (ø)

... and 141 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Technoboy-
Technoboy- merged commit 050b310 into apache:master Dec 14, 2022
Technoboy- pushed a commit to Technoboy-/pulsar that referenced this pull request Dec 14, 2022
@BewareMyPower
BewareMyPower deleted the bewaremypower/ns-policies branch December 21, 2022 03:19
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs ready-to-test release/blocker Indicate the PR or issue that should block the release until it gets resolved release/2.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants