forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
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
81995: colexec: derive a tracing span in materializer when collecting stats r=yuzefovich a=yuzefovich If we don't do this, then the stats would be attached to the span of the materializer's user, and if that user itself has a lot of payloads to attach (e.g. a joinReader attaching the KV keys it looked up), then the stats might be dropped based on the maximum size of structured payload per tracing span of 10KiB (see `tracing.maxStructuredBytesPerSpan`). Deriving a separate span guarantees that the stats won't be dropped. This required some changes to make a test - that makes too many assumptions about tracing infra - work. Release note: None 84358: sql/tests: TestRandomSyntaxSchemaChangeColumn use a resettable timeout r=fqazi a=fqazi fixes cockroachdb#65736 Previously, TestRandomSyntaxSchemaChangeColumn had a fixed timeout, which meant that if schema change got stuck behind each other, this timeout may not have been sufficient. Previously, we tried bumping up this timeout, but this is not the most reliable for this test. To address this, this patch introduces the concept of resettable timeouts, which states that the timeout expires only if no other statements are complete within the given timeout (otherwise, its recalculated since the completion of the last statement. To avoid potential starvation there is a limit on the number of resets, which guarantees eventual expiry if a query is always bypassed. Release note: None 85081: ui/cluster-ui: add wait time insights to active executions r=xinhaoz a=xinhaoz Closes: cockroachdb#79127 Closes: cockroachdb#79131 This commit introduces a new section, 'Wait Time Insights' to the active stmts/txns details pages. The section is included if the txn being viewed is experiencing contention and includes info on the blocked schema, table, index name, time spent blocking, and the executions blocking or waiting for the viewed execution. The section is powered by querying the `crdb_internal.cluster_locks` table via the SQL api in `/api/v2/`. The table informatioin is refreshed at an interval of 10s while on active execution pages, and is requested along with session information (to give info on active txns/stmts). Only users having VIEWACTIVITY or higher permissions can view this feature. Refactor note: to remove duplication across shared selector logic in the active txn components, `activeExecutionsCommon.selectors.ts` has been created. This file exports combiner functions for active txn selectors. The combiner func step contains the bulk of the logic to transform data from the redux state to component props, thus future changes to this logic will not need to be duplicated across packages. Release note (ui change): A new section, 'Wait Time Insights' has been added to the active statement and transaction details page. The section is included if the txn being viewed is experiencing contention and includes info on the blocked schema, table, index name, time spent blocking, and the txns blocking or waiting for the viewed txn. Only users having `VIEWACTIVITY` or higher can view this feature. The column 'Time Spent Waiting' has been added to the active executions tables that shows the total amount of time an execution has been waiting for a lock. -------------- ### Note to reviewers: only the 2nd commit is relevant, see first commit here: cockroachdb#85080 https://www.loom.com/share/53d8a74f9c9041a9b967e32dc370a153 Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Faizan Qazi <[email protected]> Co-authored-by: Xin Hao Zhang <[email protected]>
- Loading branch information
Showing
44 changed files
with
1,427 additions
and
633 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
Oops, something went wrong.