-
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.
74555: spanconfig: support rangefeeds for dynamic system tables r=irfansharif a=irfansharif Fixes #73045. We're running out of system table IDs (see #57531), and as a result we're now introducing the notion of dynamic system IDs throughout the system. Previously KV baked-in the assumption of static system IDs at two points: - When deciding to allow rangefeeds on a given range; - When enforcing strict GC TTL; It did so by decoding the range's key span and comparing against the hard-coded maximum system ID, all to determine whether the range in question contained system tables. If so, we allowed rangefeeds to be declared over it, and also did not enforce strict GC TTL (only really applies to user tables). This way of doing things does not compose with dynamically allocated system table IDs. With arbitrary, possibly non-contiguous IDs, we don't have the convenient key-comparison properties to rely on. To that end, we use the span configs infrastructure to to delegate control of whether rangefeeds are enabled over a given range and whether strict GC is enforced. This scheme allows SQL code to declare "system table configs" over arbitrary schemas, and have KV still respect it. This PR does not expose these span config settings as part of zone configs -- there's no need to (though we could in the future). To account for the asynchronous nature of the span configs infra, we need to ensure that ranges without an available config default to enabling rangefeeds. Release note: None 75698: sql/catalog/descs: move direct KV access methods under an interface r=ajwerner a=ajwerner These things are both generally frowned upon and have different contracts than the collection itself. Separate them with an interface layer of indirection to make it clearer that there's a trap lurking around these methods. Release note: None 75724: server.go: misc refactors r=tbg a=knz This moves code out of server.go into distinct files, to make the code easier to navigate/explore. 75743: roachprod: add cockroach-roachstress GCE project to GC cronjob r=srosenberg a=srosenberg Roachtest Stress runs nightly in TC; to reduce the chance of resource exhaustion, these tests are executed in cockroach-roachstress project whereas roachtests are normally executed in cockroach-ephemeral. Thus, to ensure all resources are eventually GCed, we add cockroach-roachstress to the list of currently GCed projects. Release note: None Co-authored-by: irfan sharif <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Raphael 'kena' Poss <[email protected]> Co-authored-by: Stan Rosenberg <[email protected]>
- Loading branch information
Showing
103 changed files
with
3,084 additions
and
2,339 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
Oops, something went wrong.