Skip to content
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

WeightReplicaLoadBalanceAlgorithm can not be used by multiple load balance rules #17395

Merged
merged 19 commits into from
Jun 14, 2022
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change static field WEIGHT_MAP to class level
  • Loading branch information
cherubimLV committed Jun 5, 2022
commit 3cf7ab9341554c1e58ec184c8dff89e35c098921
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class WeightReplicaLoadBalanceAlgorithm implements ReadQueryLoadBal

private static final double ACCURACY_THRESHOLD = 0.0001;

private static final ConcurrentHashMap<String, double[]> weightMap = new ConcurrentHashMap<>();
private final ConcurrentHashMap<String, double[]> weightMap = new ConcurrentHashMap<>();

private Properties props;

Expand Down