Skip to content

Commit

Permalink
[fix][broker] Fix AvgShedder strategy check (#23156)
Browse files Browse the repository at this point in the history
(cherry picked from commit 66cc754)
  • Loading branch information
Demogorgon314 authored and thetumbled committed Oct 8, 2024
1 parent 430a9e8 commit 16d5bcf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ public void initialize(final PulsarService pulsar) {
// if the placement strategy is also a load shedding strategy
// we need to check two strategies are the same
if (!conf.getLoadBalancerLoadSheddingStrategy().equals(
conf.getLoadBalancerPlacementStrategy())) {
conf.getLoadBalancerLoadPlacementStrategy())) {
throw new IllegalArgumentException("The load shedding strategy: "
+ conf.getLoadBalancerLoadSheddingStrategy()
+ " can't work with the placement strategy: "
+ conf.getLoadBalancerPlacementStrategy());
+ conf.getLoadBalancerLoadPlacementStrategy());
}
// bind the load shedding strategy and the placement strategy
loadSheddingPipeline.add((LoadSheddingStrategy) placementStrategy);
Expand Down

0 comments on commit 16d5bcf

Please sign in to comment.