-
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.
124537: kvserver: allow retrying scatter processing with more errors r=nvanbenschoten a=kvoli Previously, scatter processing would only be retried when encountering a snapshot error. Other errors commonly occur, which we expect to be transient and retryable, such as the range descriptor changing or rejected lease transfers. The range descriptor change error being most common, due to the proclivity of clients to issue splits alongside scatter requests, which would update the range descriptor. Retry failed scatter replicate processing if the returned error matches any of `IsRetriableReplicationChangeError`s, similar to range splits. Note the maximum number of retries remains at 5 for scatter. Resolves: #124522 Release note: None 124751: catalog: collecting virtual schemas can be expensive for some ORM queries r=fqazi a=fqazi Previously, when running ORM queries with larger schemas or our ORM query bench test we noticed that aggregating virtual schema objects could take a big chunk of time. This was because converting the internal the VirtualTable / VirtualSchemas into a nstree.Catalog was not cheap. To address this, this patch will: 1. Convert the VirtualTable / VirtualSchemas into a nstree.Catalog which can be used between collections (the entire state here is immutable). 2. Reduce some extra copies that happen when copying betwen nstree.Catalog objects, by allowing references to be ingested. Fixes: #124750 ```Orignal: BenchmarkORMQueries/asyncpg_types 1 16914664491 ns/op 0 roundtrips 6151796312 B/op 33275332 allocs/op After having a shared nstree.Catalog object: BenchmarkORMQueries/asyncpg_types 1 13252306945 ns/op 0 roundtrips 5442736128 B/op 29586155 allocs/op After optimizing MutableCatalog.AddAll: BenchmarkORMQueries/asyncpg_types 1 12399752839 ns/op 0 roundtrips 4602288096 B/op 27474078 allocs/op ```` Co-authored-by: Austen McClernon <[email protected]> Co-authored-by: Faizan Qazi <[email protected]>
- Loading branch information
Showing
5 changed files
with
95 additions
and
43 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