-
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.
Browse files
Browse the repository at this point in the history
128794: changefeedccl: add timers around key parts of the changefeed pipeline r=andyyang890 a=asg0451 Add timers around key parts of the changefeed pipeline to help debug feeds experiencing issues. We emit latency histograms for each stage using the `changefeed.stage.<stage>.latency` metrics. The metric respects the changefeed `scope` label for debugging specific feeds. The implementation exposes a mechanism to add new timers for stages with ease. Fixes: #121538 Release note (enterprise change): Added timers around key parts of the changefeed pipeline to help debug feeds experiencing issues. The `changefeed.stage.<stage>.latency` metrics now emit latency histograms for each stage. The metric respects the changefeed `scope` label for debugging specific feeds. 131309: crosscluster/logical: spruce up ldr debugging vtable r=dt a=msbutler Epic: none Release note: none 131330: catalog/lease: prevent panic inside upsertLeaseLocked r=fqazi a=fqazi Previously, it was possible to panic inside upsertLeaseLocked, if the stored lease was nil. This could happen in tests which are designed to instantly release dereferenced leases. For example this was seen inside: TestAsOfSystemTimeUsesCache. To address this, this patch will add defensive code to check for a valid stored lease, before clearing the session ID stored inside the lease. Fixes: #131300 Release note: None 131347: server/license: Initial support for serverless r=fqazi a=spilchen Previously, the license enforcer was not initialized for secondary tenants. There are two modes for secondary tenants: when the tenant runs as a separate process from the system tenant (serverless), and when it shares the same process. In the shared process mode, the enforcer relied on a shared singleton—initialized for the system tenant and reused for secondary tenants. However, when the secondary tenant runs in a separate process (serverless), the enforcer had throttling fully disabled. This change is the first step in supporting serverless. The main challenge in allowing secondary tenants to initialize the enforcer is that they don’t have access to the KV key stored in the system keyspace, which records the grace period's end when no license is installed. This change doesn’t resolve that yet, but it sets the foundation for future work. For now, it estimates the grace period by setting it to 7 days from the time the enforcer is created. Several changes were made to support serverless in this form: - Call the enforcer’s `Start()` function for secondary tenants as well. - Allow `Start()` to be called multiple times. - Move all parameters for `Start` into an options struct. - Remove the enforcer singleton, as it caused more issues (especially in tests) than benefits. - Secondary tenants that share the same process will still share the same enforcer, but now the enforcer is passed around by storing a copy in `SQLConfig`. This change will be backported to 24.2, 24.1, 23.2 and 23.1. Epic: CRDB-39988 Informs: CRDB-42309 Release note: None 131350: roachprod: ensure `CommandContext` returns when context is canceled r=herkolategan,srosenberg a=renatolabs Without setting `WaitDelay`, there is a chance that we will hang waiting for child processes to exit if the IO pipes are not closed. See documentation at: https://pkg.go.dev/os/exec#Cmd Informs: #131095 Release note: None 131351: sql/logictest: address flake inside synthetic_privileges r=fqazi a=fqazi Previously, the logic test synthetic_privileges would flake with transaction retry errors querying from has_table_privilege. To address this, this patch makes the problematic invocation as retryable. Fixes: #128370 Release note: None Co-authored-by: Miles Frankel <[email protected]> Co-authored-by: Michael Butler <[email protected]> Co-authored-by: Faizan Qazi <[email protected]> Co-authored-by: Matt Spilchen <[email protected]> Co-authored-by: Renato Costa <[email protected]>
- Loading branch information
Showing
35 changed files
with
535 additions
and
174 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,14 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "timers", | ||
srcs = ["timers.go"], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/timers", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/util/metric", | ||
"//pkg/util/metric/aggmetric", | ||
"//pkg/util/timeutil", | ||
"@com_github_prometheus_client_golang//prometheus", | ||
], | ||
) |
Oops, something went wrong.