-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver/reports: replication_constraint_stats use voter constraints
Previously replication_constraint_stats were using zone constraints regardless of the fact that num_voters and a separate voter constraints were provided. This was causing report to have violations because range had less voters than replicas, but still were trying to check if we have as many voters as full replica constraints. This was causing ambiguity in reports as there were no violation and no way to figure out which constraint is being violated. This patch changes report to use voter constraints if they are provided or use voters and non voters if voter count is configured lower than replica count, but voter constraints are not provided. Release note (bug fix): table system.replication_constraint_stats is not showing erroneous voter contraint violations when num_voters is configured. Release justification: bugfix to an issue which also needs backporting.
- Loading branch information
1 parent
12f2054
commit 83122f9
Showing
7 changed files
with
626 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.