Skip to content

Commit

Permalink
[fix][broker] Fix AvgShedder strategy check (#23156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Aug 13, 2024
1 parent 06a2f5c commit 66cc754
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,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
loadSheddingStrategy = (LoadSheddingStrategy) placementStrategy;
Expand Down

0 comments on commit 66cc754

Please sign in to comment.