Skip to content

[fix][broker] Fix the wrong behaviour when set overrideBrokerNicSpeedGbps - #18818

Merged
Technoboy- merged 3 commits into
apache:masterfrom
mattisonchao:fix_break
Dec 8, 2022
Merged

Technoboy- merged 3 commits into
apache:masterfrom
mattisonchao:fix_break

Conversation

@mattisonchao

@mattisonchao mattisonchao commented Dec 8, 2022 •

Copy link
Copy Markdown
Member

Motivation

This break was introduced by #14648 and affected unreleased 2.11.

Modifications

  • Multiply overrideBrokerNicSpeedGbps with the NIC number.

Verifying this change

  • Make sure that the change passes the CI checks.

  • doc-not-needed

@github-actions

github-actions Bot commented Dec 8, 2022

Copy link
Copy Markdown

@mattisonchao Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Dec 8, 2022
@mattisonchao mattisonchao self-assigned this Dec 8, 2022
@mattisonchao mattisonchao added this to the 2.12.0 milestone Dec 8, 2022
@mattisonchao mattisonchao added release/blocker Indicate the PR or issue that should block the release until it gets resolved release/2.11.0 ready-to-test labels Dec 8, 2022
@mattisonchao mattisonchao reopened this Dec 8, 2022
@codecov-commenter

codecov-commenter commented Dec 8, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.02%. Comparing base (68ca60c) to head (49ed68c).
⚠️ Report is 3189 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18818      +/-   ##
============================================
- Coverage     50.05%   47.02%   -3.04%     
+ Complexity    11024    10533     -491     
============================================
  Files           703      703              
  Lines         68814    68817       +3     
  Branches       7378     7377       -1     
============================================
- Hits          34446    32359    -2087     
- Misses        30621    32818    +2197     
+ Partials       3747     3640     -107     
Flag Coverage Δ
unittests 47.02% <100.00%> (-3.04%) ⬇️

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

Files with missing lines Coverage Δ
...ker/loadbalance/impl/LinuxBrokerHostUsageImpl.java 79.68% <100.00%> (+0.32%) ⬆️

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


private double getTotalNicLimitWithConfiguration(List<String> nics) {
@VisibleForTesting
public double getTotalNicLimitWithConfiguration(List<String> nics) {

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.

it's a public method, so can delete @VisibleForTesting

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

change to protected

@Technoboy-
Technoboy- merged commit 3e9994e into apache:master Dec 8, 2022
@Technoboy- Technoboy- added cherry-picked/branch-2.11 and removed release/blocker Indicate the PR or issue that should block the release until it gets resolved labels Dec 8, 2022
Demogorgon314 pushed a commit to Demogorgon314/pulsar that referenced this pull request Dec 26, 2022
Demogorgon314 pushed a commit to Demogorgon314/pulsar that referenced this pull request Dec 29, 2022
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants