cockroachdb / cockroachdb/cockroach

ui: missing statement execution

Open
#100,232 0 comments 0 reactions 0 assignees View on GitHub
A-webui C-bug T-observability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

I'm looking at an in-progress statement execution; the statement is blocked on a lock held by another session, and I see this:
![Screenshot from 2023-03-30 18-51-31](https://user-images.githubusercontent.com/377201/228984527-539b1343-5546-4e1f-a8e9-a25fa27f0f5b.png)

When I click on the `SHOW DATABASE` link, I see this:
![Screenshot from 2023-03-30 18-51-11](https://user-images.githubusercontent.com/377201/228984551-2ca33daa-65d3-47b6-8834-5dacba7260b5.png)

Clicking on `SHOW database` is pretty bizarre in the first place. The lock is held by a transaction, and the last statement in that transaction was `SHOW database`. This statement is no longer running, nor did it have anything to do with the lock. So, at the very least, the `Statement Execution` column name is not very informative. Beyond that, I wonder if we made an assumption here that the respective statement is still running, when there's no particular reason why it would be.

On recent master - `d8ce1ce3f12106`.

Jira issue: CRDB-26311

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.