-
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.
139020: sql/schemachanger: Add support for storing roles in policies r=spilchen a=spilchen A previous commit introduced basic support for CREATE/DROP POLICY. This commit extends that functionality by storing roles in the policy descriptor as strings. The roles are modelled as separate DSC elements, making it easier to modify the roles in a policy, which will be supported with ALTER POLICY. Epic: CRDB-11724 Informs: #136696 Release note: None 139108: refactor: replace filepath.Walk with filepath.WalkDir r=RaduBerinde a=Gofastasf Replace filepath.Walk with filepath.WalkDir. filepath.WalkDir, introduced in Go 1.16, is more performant as it avoids creating unnecessary intermediate os.FileInfo objects. While filepath.Walk calls os.Lstat for every file or directory to retrieve os.FileInfo, filepath.WalkDir provides a fs.DirEntry, which includes file type information without requiring a stat call. This change reduces unnecessary system calls and aligns with modern Go practices for directory traversal. 139203: scexec: treat BatchTimestampBeforeGCError as permanent r=rafiss a=rafiss ### sql: fix ordering of arguments for IndexBackfillPlanner The "now" argument was being passed as the "writeAsOf" parameter. ### jobsprotectedts: fix calculation in TryToProtectBeforeGC This function was attempting to compute 80% of the time until the GC threshold is reached. However, it did not take into account that the read was happening with a historical timestamp. Now this is part of the calculation. ### scexec: treat BatchTimestampBeforeGCError as permanent This uses the same check and testing that was added in a7cce24 for the materialized view backfill. fixes #126260 Release note (bug fix): Fixed a bug where the error "batch timestamp T must be after replica GC threshold" could occur during a schema change backfill operation, and cause the schema change job to retry infinitely. Now this error is treated as permanent, and will cause the job to enter the failed state. Co-authored-by: Matt Spilchen <[email protected]> Co-authored-by: Gofastasf <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
53 changed files
with
886 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
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.