Skip to content

Commit

Permalink
Statement and Txn UI updates. (cockroachdb#14521)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Vigilante <[email protected]>
  • Loading branch information
Stephanie Bodoff and nickvigilante authored Jul 19, 2022
1 parent 468be33 commit 479ebdb
Show file tree
Hide file tree
Showing 28 changed files with 138 additions and 175 deletions.
20 changes: 10 additions & 10 deletions _includes/releases/v22.1/v22.1.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Release Date: July 11, 2022

<h3 id="v22-1-3-enterprise-edition-changes">Enterprise edition changes</h3>

- Added the ability to provide short-lived OAuth 2.0 tokens as a form of short-lived credentials to Google Cloud Storage and KMS. The token can be passed to the GCS or KMS URI via the new `BEARER_TOKEN` parameter for "specified" authentication mode.
- Added the ability to provide short-lived OAuth 2.0 tokens as a form of short-lived credentials to Google Cloud Storage and KMS. The token can be passed to the GCS or KMS URI via the new `BEARER_TOKEN` parameter for "specified" authentication mode.

Example GCS URI: `gs://<bucket>/<key>?AUTH=specified&BEARER_TOKEN=<token>`
Example KMS URI: `gs:///<key_resource>?AUTH=specified&BEARER_TOKEN=<token>`

Example KMS URI: `gs:///<key_resource>?AUTH=specified&BEARER_TOKEN=<token>`

There is no refresh mechanism associated with this token, so it is up to the user to ensure that its TTL is longer than the duration of the job or query that is using the token. The job or query may irrecoverably fail if one of its tokens expire before completion. [#83210][#83210]

<h3 id="v22-1-3-sql-language-changes">SQL language changes</h3>
Expand All @@ -37,13 +37,13 @@ Release Date: July 11, 2022
<h3 id="v22-1-3-db-console-changes">DB Console changes</h3>

- The DB Console has a more helpful error message when the [**Jobs** page](../v22.1/ui-jobs-page.html) times out, and an information message appears after 2 seconds of loading and indicates that the loading might take a while. Previously, it would show the message `Promise timed out after 30000 ms`. [#82722][#82722]
- The time selection component previously on the [**Statements**](../v22.1/ui-statements-page.html) and [**Transactions**](../v22.1/ui-transactions-page.html) pages has been added to the [**Statement Details Overview**](../v22.1/ui-statements-page.html#statement-details-page) and [**Explain Plan**](../v22.1/ui-statements-page.html#explain-plans) tabs, and the [**Transaction Details**](../v22.1/ui-transactions-page.html#transaction-details-page) page. [#82721][#82721]
- The **Statement Details** page now shows charts for: Execution and Planning Time, Rows Processed, Execution Retries, Execution Count, and Contention. [#82960][#82960]
- The **Statement Details** page was renamed to **Statement Fingerprint**. The [**Statement Fingerprint**](../v22.1/ui-statements-page.html#statement-fingerprint-page) page now shows charts for: Execution and Planning Time, Rows Processed, Execution Retries, Execution Count, and Contention. [#82960][#82960]
- The time interval component on the [**Statements**](../v22.1/ui-statements-page.html) and [**Transactions**](../v22.1/ui-transactions-page.html) pages has been added to the **Statement Fingerprint** **Overview** and [**Explain Plans**](../v22.1/ui-statements-page.html#explain-plans) tabs, and the [**Transaction Details**](../v22.1/ui-transactions-page.html#transaction-details-page) page. [#82721][#82721]
- Added a confirmation modal to the `reset SQL Stats` button. [#83142][#83142]
- Application names and database names are now sorted in the dropdown menus. [#83334][#83334]
- A new single column called **Rows Processed**, displayed by default, combines the columns rows read and rows written on the **Statements** and **Transactions** pages. [#83511][#83511]
- The period selected on the [**Metrics**](../v22.1/ui-overview.html#metrics) page and the [**SQL Activity**](../v22.1/ui-overview.html#sql-activity) pages are now aligned. If the user changes the period on one page, the value will be the same for the other. [#83507][#83507]
- Added a period label to the **Statement**, **Statement Details**, and **Transaction** pages, with information about the period in which we're showing information. The **Execution Statistics** tab was removed from the **Statement Details** page. [#83333][#83333]
- The time interval selected on the [**Metrics**](../v22.1/ui-overview.html#metrics) page and the [**SQL Activity**](../v22.1/ui-overview.html#sql-activity) pages are now aligned. If the user changes the time interval on one page, the value will be the same for the other. [#83507][#83507]
- Added a label to the **Statement**, **Statement Fingerprint**, and **Transaction** pages, with information about the time interval for which we're showing information. The **Execution Stats** tab was removed from the **Statement Fingerprint** page. [#83333][#83333]
- Removed the 10 and 30 minute options on the **SQL Activity** page. [#83542][#83542]
- On the **Statements** page, users can no longer filter statements by searching for text in the `EXPLAIN` plan. [#83652][#83652]
- Updated the tooltips on the **Statements** and **Transactions** pages in the DB Console for improved user experience. [#83540][#83540]
Expand All @@ -54,12 +54,12 @@ Release Date: July 11, 2022
- Added missing support for preparing a `DECLARE` cursor statement with placeholders. [#83001][#83001]
- CockroachDB now treats node unavailable errors as retry-able [changefeed](../v22.1/use-changefeeds.html) errors. [#82874][#82874]
- CockroachDB now ensures running changefeeds do not inhibit node shutdown. [#82874][#82874]
- **Last Execution** time now shows the correct value on **Statement Details** page. [#83114][#83114]
- **Last Execution** time now shows the correct value on **Statement Fingerprint** page. [#83114][#83114]
- CockroachDB now uses the proper multiplying factor to contention value on **Statement Details** page. [#82960][#82960]
- CockroachDB now prevents disabling [TTL](../v22.1/row-level-ttl.html) with `ttl = 'off'` to avoid conflicting with other TTL settings. To disable TTL, use `RESET (ttl)`. [#83216][#83216]
- Fixed a panic that could occur if the `inject_retry_errors_enabled` cluster setting is true and an `INSERT` is executed outside of an explicit transaction. [#83193][#83193]
- Previously, a user could be connected to a database but unable to see the metadata for that database in [`pg_catalog`](../v22.1/pg-catalog.html) if the user did not have privileges for the database. Now, users can always see the `pg_catalog` metadata for a database they are connected to (see [#59875](https://github.com/cockroachdb/cockroach/issues/59875)). [#83360][#83360]
- The **Statement Details** page now finds the stats when the `unset` application filter is selected. [#83334][#83334]
- The **Statement Fingerprint** page now finds the stats when the `unset` application filter is selected. [#83334][#83334]
- Fixed a bug where no validation was performed when adding a [virtual computed column](../v22.1/computed-columns.html) which was marked `NOT NULL`. This meant that it was possible to have a virtual computed column with an active `NOT NULL` constraint despite having rows in the table for which the column was `NULL`. [#83353][#83353]
- Fixed the behavior of the [`soundex` function](../v22.1/functions-and-operators.html#string-and-byte-functions) when passed certain Unicode inputs. Previously, certain Unicode inputs could result in crashes, errors, or incorrect output. [#83435][#83435]
- Fixed a bug where a lock could be held for a long period of time when adding a new column to a table (or altering a column type). This contention could make the [**Jobs** page](../v22.1/ui-jobs-page.html) non-responsive and job adoption slow. [#83306][#83306]
Expand Down
8 changes: 4 additions & 4 deletions _includes/v22.1/ui/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Status | The status of the session: Active or Idle. A session is Active if it h
Most Recent Statement | **New in v22.1:** If more than one statement is executing, the most recent statement. If the session is Idle, the last statement.
Statement Start Time (UTC) | **New in v22.1:** The timestamp at which the statement started.
Memory Usage | Amount of memory currently allocated to the session followed by the maximum amount of memory the session has ever been allocated.
Client IP Address | **New in v22.1:**The IP address and port of the client that opened the session.
User Name | **New in v22.1:**The user that opened the session.
Application Name | **New in v22.1:**The application that ran the session.
Client IP Address | **New in v22.1:** The IP address and port of the client that opened the session.
User Name | **New in v22.1:** The user that opened the session.
Application Name | **New in v22.1:** The application that ran the session.
Actions | Options to cancel the active statement and cancel the session. These require the `CANCELQUERY` [role option]({{ link_prefix }}alter-role.html#role-options).<ul><li>**Cancel Statement:** Ends the SQL statement. The session running this statement will receive an error. </li> <li>**Cancel Session:** Ends the session. The client that holds this session will receive a "connection terminated" event.</li></ul>

To view details of a session, click a **Session Start Time (UTC)** to display session details.
Expand Down Expand Up @@ -65,7 +65,7 @@ The **Cancel session** button ends the session. The client that holds this sessi
- The SQL statement.
- **Execution Start Time** is the timestamp at which the statement was run.
- **Distributed Execution?** shows whether the statement uses [Distributed SQL (DistSQL)]({{ link_prefix }}architecture/sql-layer.html#distsql) optimization.
- [**View Statement Details**]({{ page_prefix }}statements-page.html#statement-details-page) to view the Statement Details page for the statement.
- [**View Statement Details**]({{ page_prefix }}statements-page.html#statement-fingerprint-page) to view the Statement Fingerprint page for the statement.

## See also

Expand Down
Loading

0 comments on commit 479ebdb

Please sign in to comment.