-
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.
57184: config: introduce `num_voters` and `voter_constraints` r=andreimatei,nvanbenschoten a=aayushshah15 This commit introduces two new attributes to zone configs: `num_voters` and `voter_constraints`. These attributes semantically act as subsets of the existing `num_replicas` and `constraints` attributes, in that they apply _only_ to voting replicas. After this change, when `num_voters` is explicitly specified, `num_replicas` indicates the sum of voting and non-voting replicas. Likewise, the existing `constraints` field governs the placement constraints for all replicas (similarly defaulting to just voting replicas if non-voting replicas aren't used), whereas the new `voter_constraints` field governs placement constraints for just the voting replicas. *This retains backwards compatibility* for existing zone configs that do not use these newly added attributes. Note that the set of nodes satisfying `voter_constraints` may not necessarily be a subset of the set of nodes satisfying `constraints`. `voter_constraints` are simply required to be compatible with `constraints`. They can be totally disjoint from the `constraints` (i.e. talk about completely different set of attributes). Fixes #57505 Release note(sql change): Zone configs now support new attributes `num_voters` and `voter_constraints`. `num_voters` will specify the number of voting replicas. When `num_voters` is explicitly specified, `num_replicas` will be the sum of voting and non-voting replicas. `voter_constraints` will specify the constraints that govern the placement of just the voting replicas, whereas the existing `constraints` attributes will govern the placement of all replicas (voting as well as non-voting). 59407: sql: Implement ALTER TABLE ... LOCALITY REGIONAL BY TABLE from GLOBAL r=arulajmani,otan a=ajstorm Implements ALTER TABLE ... LOCALITY REGIONAL BY TABLE (all permutations) from LOCALITY GLOBAL. Release note (sql change): Implements ALTER TABLE ... LOCALITY REGIONAL BY TABLE from LOCALITY GLOBAL. Resolves #58343. Also resolves #59249. 59541: storage,kv: rationalize the NewUnIndexedBatch interface and implement… r=sumeerbhola a=sumeerbhola …ation Release note: None Co-authored-by: Aayush Shah <[email protected]> Co-authored-by: Adam Storm <[email protected]> Co-authored-by: sumeerbhola <[email protected]>
- Loading branch information
Showing
30 changed files
with
1,105 additions
and
316 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
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.