-
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.
Browse files
Browse the repository at this point in the history
86404: sql, sqlstats: schedule sql stats compaction job async r=xinhaoz a=xinhaoz Closes #85582 Currently, during sql stats compaction job scheduling, the schedule is retrieved by querying from the `system.scheduled_jobs` table. The function handling scheduling is called synchronously during node startup to ensure the first schedule, and can thus block node startup if the query experiences contention. This commit changes the scheduling setup to be called asynchronously using a channel notification to ensure the stats collector does not block node startup. The callback for changing the cluster setting `SQLStatsCleanupRecurrence` is also modified to match this behaviour, now issuing a channel notification to update the schedule to the new value. Release justification: bug fix, low risk update to existing functionality Release note: None 86665: upgrade/upgrades: downgrade precondition validation failure r=Xiang-Gu a=ajwerner The assertion failure lead to sentry reports we did not want to see. Backport will address #85952. Release justification: For backport. Release note: None 86817: backupccl: add SHOW BACKUP option for validating descriptors r=fqazi a=fqazi Fixes: #85268 Previously, the only way to know the validity of a backup was to restore the entire backup. This was inadequate because there was no way to know if a given backup would restore without any descriptor validation errors. To address this, this patch adds support for validating the descriptors inside a given backup as a hidden option. This validation like the existing debug doctor command will not be perfect, and is subject to interpretation. Release justification: low risk command for validating descriptors inside a backup. Only for internal use and not a user facing feature. 86924: sql: add secondary_region to SHOW REGIONS r=e-mbrown a=rafiss fixes #86808 Release note (sql change): SHOW REGIONS now shows information about secondary regions. Release justification: low risk update to new functionality. 87029: ui: fix high contention time details label r=ericharmeling a=ericharmeling Previously, the High Contention Time insight label was incorrectly High Wait Time. This commit fixes that typo. Release justification: bug fix Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Faizan Qazi <[email protected]> Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: Eric Harmeling <[email protected]>
- Loading branch information
Showing
49 changed files
with
724 additions
and
447 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# These tests validate the SHOW BACKUP command (old and new stynax) with | ||
# backup images that contain both invalid and valid sets of descriptors. | ||
|
||
new-server name=s1 allow-implicit-access | ||
---- | ||
|
||
link-backup server=s1 src-path=show_backup_validate,invalidDependOnBy_21.1 dest-path=invalidDependOnBy_21.1 | ||
---- | ||
|
||
# This backup intentionally has a dangling invalid depend on by reference. | ||
query-sql regex=invalid\sdepended-on-by | ||
SELECT * FROM [SHOW BACKUP VALIDATE FROM 'invalidDependOnBy_21.1' IN 'nodelocal://0/']; | ||
---- | ||
true | ||
|
||
link-backup server=s1 src-path=show_backup_validate,valid-22.2 dest-path=valid-22.2 | ||
---- | ||
|
||
# This backup is completely valid, but has no jobs. | ||
query-sql regex=No\sproblems\sfound! | ||
SELECT * FROM [SHOW BACKUP VALIDATE FROM 'valid-22.2' IN 'nodelocal://0/']; | ||
---- | ||
true | ||
|
||
link-backup server=s1 src-path=show_backup_validate,valid-22.2-with-job dest-path=valid-22.2-with-job | ||
---- | ||
|
||
# This back up is valid, and taken when a job was actively working on the | ||
# descriptor. | ||
query-sql regex=No\sproblems\sfound! | ||
SELECT * FROM [SHOW BACKUP VALIDATE FROM 'valid-22.2-with-job' IN 'nodelocal://0/']; | ||
---- | ||
true | ||
|
||
# Validates the same backup with the old syntax. | ||
query-sql regex=No\sproblems\sfound! | ||
SELECT * FROM [SHOW BACKUP VALIDATE 'nodelocal://0/valid-22.2-with-job']; | ||
---- | ||
true |
Binary file added
BIN
+2.9 KB
pkg/ccl/backupccl/testdata/show_backup_validate/invalidDependOnBy_21.1/BACKUP_MANIFEST
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...l/backupccl/testdata/show_backup_validate/invalidDependOnBy_21.1/BACKUP_MANIFEST-CHECKSUM
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
'��� |
Binary file added
BIN
+2.78 KB
pkg/ccl/backupccl/testdata/show_backup_validate/valid-22.2-with-job/BACKUP_MANIFEST
Binary file not shown.
1 change: 1 addition & 0 deletions
1
pkg/ccl/backupccl/testdata/show_backup_validate/valid-22.2-with-job/BACKUP_MANIFEST-CHECKSUM
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
���� |
Binary file added
BIN
+2.62 KB
pkg/ccl/backupccl/testdata/show_backup_validate/valid-22.2/BACKUP_MANIFEST
Binary file not shown.
1 change: 1 addition & 0 deletions
1
pkg/ccl/backupccl/testdata/show_backup_validate/valid-22.2/BACKUP_MANIFEST-CHECKSUM
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�@>� |
Oops, something went wrong.