-
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.
61610: kvserver: expose a more user friendly protected ts error r=pbardea,ajwerner a=adityamaru We have seen several support issues related to BACKUPs where the gc.ttl being too short for the backup cadence results in the protected ts record failing to be "verified". The error bubbled up in this scenario is a proto dump of the rangedescs and protected ts record we are attempting to verify. While this has most information, it is not very parseable. Further, in the case where the gc is the reason for failure to verify, the error does not expose information about where the threshold currently is. This change strips out relevant information, and bubbles up a more informative error message. The change in tandem with docs about possible bakcup failure modes, should help reduce the number of support escalations. Informs: #57064 62238: workload/schemachange: put ADD REGION/PRIMARY REGION into operation_generator r=ajwerner a=otan see individual commits for details Co-authored-by: Aditya Maru <[email protected]> Co-authored-by: Oliver Tan <[email protected]>
- Loading branch information
Showing
18 changed files
with
1,425 additions
and
795 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_test") | ||
|
||
go_test( | ||
name = "schemachange_test", | ||
srcs = [ | ||
"main_test.go", | ||
"schema_change_external_test.go", | ||
], | ||
deps = [ | ||
"//pkg/base", | ||
"//pkg/ccl", | ||
"//pkg/ccl/utilccl", | ||
"//pkg/security", | ||
"//pkg/security/securitytest", | ||
"//pkg/server", | ||
"//pkg/testutils/serverutils", | ||
"//pkg/testutils/skip", | ||
"//pkg/testutils/sqlutils", | ||
"//pkg/testutils/testcluster", | ||
"//pkg/util/leaktest", | ||
"//pkg/util/randutil", | ||
"//pkg/workload", | ||
"//pkg/workload/histogram", | ||
"//pkg/workload/schemachange", | ||
"@com_github_stretchr_testify//require", | ||
"@org_golang_x_sync//errgroup", | ||
], | ||
) |
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.