-
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.
68467: storage: add limits to skipped data iteration r=sumeerbhola a=aliher1911 Previously when iterating engine using MVCCIncrementalIterator caller could skip large amounts of non-matching data which would result in "unbounded" resource usage. This is becoming a problem for resource constrained clusters where low priority requests like export that are used by backups to interfere with high priority workloads. If we want to throttle backups we need to be able to limit how many underlying operations we want to perform per request. This change adds an optional iteration limit to the iterator. Once the limit is reached, iterator will return an error. Error will provide a resume key to continue iteration in next request. Release note: None Fixes #68234 70881: sql: implement information_schema.{_pg_numeric_precision,_pg_numeric_precision_radix,_pg_numeric_scale} r=rafiss a=e-mbrown fixes #70872 This commit adds implementation for the `information_schema._pg_numeric_precision`, `information_schema._pg_numeric_precision_radix` and `information_schema._pg_numeric_scale` builtin functions. These functions return the precision, and scale of an exact numeric type as well as the base the precision and scale are in. Release note (sql change): The `information_schema._pg_numeric_precision`, `information_schema._pg_numeric_precision_radix` and `information_schema._pg_numeric_scale` builtin functions are nowsupported, which improves compatability with PostgreSQL. 70947: workload: use the same ctx for ramp and main load r=otan,tbg a=rafiss fixes #70019 fixes #69545 fixes #69523 We have seen issues where a worker returns ErrBadConn immediately after the ramp period is done. It comes down to the fact that connections in the pool are marked as "bad" when a context is canceled. The underlying issue might be a race condition in how lib/pq cancels the context and then marks the connection as "bad." But I'm not really sure how to fix that and it's hard to reproduce, so I'm working around the problem instead. Release note: None Co-authored-by: Oleg Afanasyev <oleg@cockroachlabs.com> Co-authored-by: e-mbrown <ebsonari@gmail.com> Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
- Loading branch information
Showing
21 changed files
with
780 additions
and
203 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
Oops, something went wrong.