-
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.
69388: changefeedccl: Implement backfill pushback. r=ajwerner a=miretskiy Recent changes to memory accounting, allocation and pushback, caused backfills to not track any memory at all. This PR corrects this by associating `kvevent.Alloc` with each event produced during the backfill. With an allocation associated with each event, backfills now gain pushback functionality. The accounting and pushback is implemented by using a blocking memory buffer, instead of the channel buffer. The use of blocking buffer also improved performance during the backfill. Backfills issue concurrent scan requests, while the rest of the event processing is single threading. Having a buffer improves throughput by around ~10%. Fixes #69248 Release Justification: Complete feature work previusly done for changefeeds by adding pushback signal to the backfills. Release Notes: Changefeeds correctly account for memory during backfills and "pushback" under memory pressure -- that is, slow down backfills. 69487: sql/catalog/seqexpr: move util/sequence r=rytaft a=ajwerner This package is about looking inside expressions to find usages of sequence functions for the purpose of dependency tracking. It definitely does not belong in `util`. It can't go in `schemaexpr` where it would naturally belong because it depends on builtins and builtins depend, indirectly, on schemaexpr. Release justification: non-production code change Release note: None 69577: ui: fix tooltip text on stmt and txn pages r=maryliag a=maryliag Previously, all reset SQL stats tooltips were showing the wrong setting and always mentioning Statement history, instead of Transaction history. Fixes #68462 Release justification: Category 2 Release note (ui change): Fix tooltip text on Statement and Transaction pages, to use correct setting "diagnostics.sql_stat_reset.interval", instead of the previous value "diagnostics.reporting.interval" <img width="481" alt="Screen Shot 2021-08-30 at 10 32 03 AM" src="https://user-images.githubusercontent.com/1017486/131355907-edf50fdd-406e-4b1e-a3a2-9a8e510d336a.png"> <img width="466" alt="Screen Shot 2021-08-30 at 10 32 14 AM" src="https://user-images.githubusercontent.com/1017486/131355924-7d193bd0-bc78-444f-a413-169ab1f54680.png"> Co-authored-by: Yevgeniy Miretskiy <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Marylia Gutierrez <[email protected]>
- Loading branch information
Showing
30 changed files
with
377 additions
and
152 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
Oops, something went wrong.