-
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.
77785: util/admission: minor cleanups r=sumeerbhola a=nvanbenschoten ### pass pebble.Metrics struct by reference The `pebble.Metrics` struct is 1120 bytes large, so it's a little too large to be passing down a nested call stack by value, even if we only do so once per 15 seconds. ### use ctx.Err() for fast-path cancellation check `Context.Err` is cheaper than calling `Context.Done` and then polling on the returned channel. `Context.Done` lazily allocates a channel and then writes to an atomic variable. The channel read then incurs a mutex lock. ---- I noticed these while finally doing a deep dive on the admission control implementation. One passing suggestion I'd make is that the "grant chain" concept is subtle and under-documented. I went through most of the package thinking it has something to do with dependent requests (e.g. intent resolution chains on an end txn). It would help for a top-level comment on `grantChainID` (or `continueGrantChain` if we want to keep commentary there) to spell out what grant chains are, their purpose, and how they work with an example. Release justification: None. Wait for v22.2. 78266: ui: Hide table stats collection setting for non-admins r=ericharmeling a=ericharmeling This PR hides the table statistics collection setting from non-admins in the DB Console. https://user-images.githubusercontent.com/27286675/159566500-9310e9cc-eb8d-4a39-ae07-6620d36a27a2.mov Part 1/2 of #77974. (For background, see #77974 (comment)) Release justification: low-risk change Release note: None 78268: roachprod: force wait=true for `stop --signal=9` r=srosenberg a=tbg Touches #77334. Release note: None 78470: execinfrapb: break the dependency on sem/builtins r=yuzefovich a=yuzefovich This commit moves several utility functions from `execinfrapb` into `execinfra` package in order to break the dependency of the former on `sem/builtins` (which eventually depends on the `c-deps`). Fixes: #78453. Release note: None Co-authored-by: Nathan VanBenschoten <[email protected]> Co-authored-by: Eric Harmeling <[email protected]> Co-authored-by: Tobias Grieger <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
24 changed files
with
276 additions
and
244 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.