-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
insights: split execution insights table into stmts and txns #93075
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Comments
xinhaoz
added
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
A-sql-observability
Related to observability of the SQL layer
labels
Dec 5, 2022
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Jan 5, 2023
Closes cockroachdb#93075 This commit adds 2 new virtual tables displaying execution insights for transaction. - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights Release note: None
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Jan 9, 2023
Closes cockroachdb#93075 This commit adds 2 new virtual tables displaying execution insights for transaction. - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights Release note (sql change): 2 new virtual tables displaying execution insights for transaction: - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Jan 13, 2023
Closes cockroachdb#93075 This commit adds 2 new virtual tables displaying execution insights for transaction. - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights Release note (sql change): 2 new virtual tables displaying execution insights for transaction: - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights
xinhaoz
added a commit
to xinhaoz/cockroach
that referenced
this issue
Jan 17, 2023
Closes cockroachdb#93075 This commit adds 2 new virtual tables displaying execution insights for transaction. - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights Release note (sql change): 2 new virtual tables displaying execution insights for transaction: - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights
craig bot
pushed a commit
that referenced
this issue
Jan 18, 2023
94720: sql: add crdb_internal.{node,cluster}_txn_execution_insights r=xinhaoz a=xinhaoz Closes #93075 This commit adds 2 new virtual tables displaying execution insights for transaction. - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights Release note (sql change): 2 new virtual tables displaying execution insights for transaction: - crdb_internal.cluster_txn_execution_insights - crdb_internal.node_txn_execution_insights ---------------- Only the 2nd commit is relevant here. 95258: server: fix UserSQLRoles to account for global privileges r=maryliag a=rafiss Epic: None Release note (bug fix): DB Console features that check for the VIEWACTIVITYREDACTED privilege now also account for global privileges. 95373: server: clear tenant cookies when tenant is missing r=knz a=dhartunian Previously, when we had cookies in an HTTP Request referencing a tenant, and that tenant didn't exist, we'd be stuck in an error loop constantly attempting to start a tenant that didn't exist. This commit updates the error log in `server_controller.go` to clear cookies for multi-tenant sessions when we return an error in order to break the browser out of the bad update cycle and have it either continue happily with an insecure cluster that doesn't need a session anyway, or request a new one by routing the user to the login page. Resolves: #95365 Resolves: #95366 Epic: CRDB-14545 Release note: None 95397: ui: fix sql stats page data refreshing r=xinhaoz a=xinhaoz This commit fixes a couple of bugs with sql stats page data fetching. First - we missed clearing the initial timeout to fetch data that was created on mount - it should be cleared when a new time range is selected on the page or when the page is unmounted. Currently, this bug can lead to unexpeted data refetches of the incorrect (previously selected) time range. Second - with the introduction of new pages that use the time picker, such as insights, sql stats pages are no longer the only page that can change the time range. Previously, data was only fetched on mount for sql stats pages if it was not previously fetched, or a data refresh was scheduled based on last update time if the current time range was not a custom (fixed) range. We should now also refetch when the data is outdated due to a new time range being selected on a different page. This commit introduces the `isDataValid` prop to sql stats pages to determine this and refetch data accordingly. Epic: none CC - just showing all the fetching is still working: https://www.loom.com/share/1b24ec65dbe64dcd9c23cd2be980b877 DB Console - https://www.loom.com/share/0afe1722d7ab418bb7f41c2462f4d84a 95444: ci: publish `latest-master-build` docker image r=jlinder a=rail Previously, our automation published latest docker images using `latest-v2x.x-build` tag. External automation that tracked the master branch would need to update the tag, when we change the version. This PR adds an extra step to tag the master branch builds with `latest-master-build` docker tag. Epic: none Release note: None 95447: sem/builtins: fix population of generator builtins r=yuzefovich a=yuzefovich Generator builtins are such that they should not evaluated as scalars (i.e. `Fn` and `FnWithExprs` evaluation functions should not be called on them). In order to highlight this as an assertion failure we initialize generator builtins with special functions in those two fields. However, previously the initialization was broken since we were modifying a copy of the builtin struct, and this is now fixed. There isn't much of a production impact though (if we ever tried to evaluate the generator as a scalar, it'd result in a nil pointer which would be caught by the vectorized engine panic-catcher; also, it seems very hard if possible to trigger this without the testing randomizations), so there is no release note. Informs: #94890. Epic: None Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: David Hartunian <[email protected]> Co-authored-by: Rail Aliiev <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Related to #90393.
Currently, we show all of our exec insights in
crdb_internal.{cluster,node}_execution_insights
.As we want to surface more txn-specific information, this table should be split into 2 tables - stmt exec insights and txn exec insights.
Jira issue: CRDB-22144
The text was updated successfully, but these errors were encountered: