-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve] [broker] Fail fast when it failed to create LoadSheddingStrategy instance #22827
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
[improve] [broker] Fail fast when it failed to create LoadSheddingStrategy instance #22827
Conversation
5cbfd8d to
5cf83d1
Compare
|
PTAL, thanks. @lhotari @Demogorgon314 @heesung-sn @BewareMyPower |
...r-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java
Outdated
Show resolved
Hide resolved
|
/pulsarbot rerun-failure-checks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22827 +/- ##
============================================
- Coverage 73.57% 73.24% -0.34%
- Complexity 32624 32638 +14
============================================
Files 1877 1889 +12
Lines 139502 141744 +2242
Branches 15299 15554 +255
============================================
+ Hits 102638 103816 +1178
- Misses 28908 29908 +1000
- Partials 7956 8020 +64
Flags with carried forward coverage won't be shown. Click here to find out more.
|
...r-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java
Outdated
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java
Outdated
Show resolved
Hide resolved
|
/pulsarbot rerun-failure-checks |
…ategy instance (apache#22827) (cherry picked from commit 1770cbc)
…ategy instance (apache#22827) (cherry picked from commit 1770cbc)
Motivation
There are two error in method
org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl#createLoadSheddingStrategy.LoadSheddingStrategyinstead ofPlacementStrategy.ThresholdShedderby default instead ofOverloadShedder.Modifications
Fix these two errors.Fail fast when it failed to create LoadSheddingStrategy.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: