Skip to content

[fix][broker] When creating a namespace anti-affinity group with the default local policies, use the bundle size supplied by the user. - #20327

Merged
tisonkun merged 1 commit into
apache:masterfrom
syk-coder:fix_default_bundles_ns_anti_affinity_group
May 18, 2023
Merged

tisonkun merged 1 commit into
apache:masterfrom
syk-coder:fix_default_bundles_ns_anti_affinity_group

Conversation

@syk-coder

Copy link
Copy Markdown
Contributor

Fixes #20278

Motivation
Motivation & Modifications:

  1. When creating a namespace anti-affinity group with the default local policies, use the bundle size supplied by the user.
  2. use OrElseGet instead of OrElse

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

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

Matching PR in the forked repository

…al policies, use the bundle size supplied by the user.

2. use OrElseGet instead of OrElse
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 15, 2023

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@tisonkun

Copy link
Copy Markdown
Member

Merging...

Thanks for your contribution @syk-coder!

@tisonkun
tisonkun merged commit 908d0b3 into apache:master May 18, 2023
poorbarcode pushed a commit that referenced this pull request May 30, 2023
…anti-affinity group with the default local policies (#20327)

(cherry picked from commit 908d0b3)
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.69%. Comparing base (b07f2a9) to head (194afb8).
⚠️ Report is 2547 commits behind head on master.

Files with missing lines Patch % Lines
...pache/pulsar/broker/admin/impl/NamespacesBase.java 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #20327      +/-   ##
============================================
+ Coverage     30.23%   37.69%   +7.45%     
- Complexity      295    12625   +12330     
============================================
  Files          1689     1691       +2     
  Lines        129020   129049      +29     
  Branches      14070    14070              
============================================
+ Hits          39013    48647    +9634     
+ Misses        84148    74073   -10075     
- Partials       5859     6329     +470     
Flag Coverage Δ
inttests 24.11% <0.00%> (-0.05%) ⬇️
systests 24.90% <0.00%> (-0.07%) ⬇️
unittests 33.29% <0.00%> (?)

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

Files with missing lines Coverage Δ
...pache/pulsar/broker/admin/impl/NamespacesBase.java 32.22% <0.00%> (+14.66%) ⬆️

... and 417 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could you also help change orElse to orElseGet at line 1713 and 1763

5 participants