-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/lease: support skipping descriptor validation lease renewals
Fixes: #95764 Previously, when renewing a lease we would fetch dependent descriptors for cross-descriptor validation. This could lead to perpetual transaction retries, in the schema where there are tons of dependencies between descriptors since lease renewals would happen in a high-priority transaction. Additionally, this incurs additional latency for lease renewal. To address this, this patch disables cross-validation by default for lease renewals. Epic: none Release note (bug fix): Disable cross-descriptor validation on lease renewal, which can be problematic when there are lots of descriptors with lots of foreign key references, in which cases, the cross-reference validation could starve schema changes.
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 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