-
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.
79546: [CRDB-2743] sql: create builltin generator crdb_internal.probe_range r=Santamaura a=Santamaura Previously there was difficulty in diagnosing kv layer health when an incident occurs. This patch introduces the new virtual table crdb_internal.probe_range which utilizes the kvprober to probe each range to determine if the range can be reached or not. resolves #61695 Release note: None ![Screen Shot 2022-04-20 at 1 15 17 PM](https://user-images.githubusercontent.com/17861665/164293795-d1021d6b-4eca-46f3-8ebb-37389a094301.png) 80182: backupccl: Fix SHOW BACKUPS on a bucket's base directory. r=benbardin a=benbardin Fixes #77930. Tested on GS and AWS. Release note (enterprise change): Fix bug where backups in the base directory of a cloud storage bucket would not be discovered by SHOW BACKUPS. These backups will now appear correctly. Co-authored-by: Santamaura <santamaura@cockroachlabs.com> Co-authored-by: Ben Bardin <bardin@cockroachlabs.com>
- Loading branch information
Showing
7 changed files
with
293 additions
and
14 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
18 changes: 18 additions & 0 deletions
18
pkg/sql/logictest/testdata/logic_test/generator_probe_ranges
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,18 @@ | ||
# LogicTest: local fakedist | ||
|
||
query ITIT colnames | ||
SELECT * FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE range_id < 0 | ||
---- | ||
range_id error end_to_end_latency_ms verbose_trace | ||
|
||
query I | ||
SELECT count(1) FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'read') WHERE error != '' | ||
---- | ||
0 | ||
|
||
# Test that the trace has a string matching `proposing command` to verify trace events | ||
# from the kvserver write path are received. | ||
query I | ||
SELECT count(1) FROM crdb_internal.probe_ranges(INTERVAL '1000ms', 'write') WHERE range_id = 1 AND verbose_trace LIKE '%proposing command%' | ||
---- | ||
1 |
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.