-
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.
90427: instancestorage: asynchronously pre-allocate instance IDs in sql_instances r=JeffSwenson,ajwerner a=jaylim-crl Related to #85737. Previously, when a SQL pod starts up, we will allocate an instance ID for it synchronously. This can be a problem for multi-region setup because that would now involve a read and write across all regions. This commit is part of the work to make the system.sql_instances table REGIONAL BY ROW to reduce cold start times. Here, we would asynchronously pre-allocate instance IDs, and the startup process will then claim an ID for the SQL pod. Once the sql_instances table is made REGIONAL BY ROW, we can update the logic to pre-allocate for every region, and only perform a regional lookup when claiming an ID. At the same time, we will now use a cached reader of the sqlLivenessProvider with the SQL instance storage. This is fine since the cached reader is on the conservative side, and will return true on IsAlive if it does not know. The only downside to this is that we leave instance rows lying around in the sql_instances table longer, but that is fine since they will eventually be reclaimed once the cache gets updated. Epic: None Release note (sql change): The `system.sql_instances` table now includes pre-allocated ID entries, where all the fields except `id` will be NULL. 91170: dev: add -flex-types argument for sqlite logic tests by default r=yuzefovich a=yuzefovich This commit adds a shortcut for specifying `-flex-types` test argument of the logic tests that is needed to run sqlite targets. It also defaults to passing this argument if only sqlite targets are specified. We do use this flag in the CI, so it reduces a possibility of confusion. Found when working on #58089. Epic: None Release note: None 91388: loqrecovery: prohibit plans with any descriptor changes r=tbg a=aliher1911 Previously, loss of quorum recovery allowed plan creation for cases where descriptor change didn't change survivor replica. This is not sufficient as replica will still be checked against its status and will panic when this entry is applied. This diff changes validation behaviour to treat this change as a problem and require force flag to override it. Release note: None Fixes #91271 Co-authored-by: Jay <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Oleg Afanasyev <[email protected]>
- Loading branch information
Showing
18 changed files
with
1,233 additions
and
241 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
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
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
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
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.