Skip to content
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

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

BewareMyPower
Copy link
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
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
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2022

Codecov Report

Merging #18909 (f3cb0a7) into master (01e7eac) will increase coverage by 4.93%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             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     
Flag Coverage Δ
unittests 53.52% <0.00%> (+4.93%) ⬆️

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

Impacted Files Coverage Δ
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% <0.00%> (ø)
...ersistentStickyKeyDispatcherMultipleConsumers.java 58.33% <0.00%> (-1.48%) ⬇️
...rg/apache/pulsar/broker/service/BrokerService.java 57.40% <0.00%> (-0.06%) ⬇️
...he/bookkeeper/mledger/offload/OffloadersCache.java
.../apache/bookkeeper/mledger/offload/Offloaders.java
...kkeeper/mledger/impl/LedgerOffloaderStatsImpl.java
...g/apache/bookkeeper/mledger/impl/OpFindNewest.java
...ava/org/apache/bookkeeper/mledger/impl/OpScan.java
.../bookkeeper/mledger/impl/NonDurableCursorImpl.java
... and 153 more

@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