[DocDB] Use statement start time to compute wait time of waiters in pg_locks #20288
Closed
1 task done
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-9250
Description
The query layer tracks a statement start time for each running statement. We have previously used the time at which a waiter enters the wait queue to display a "wait_time" to users of pg_locks.
However, this is unreliable due to the reasons detailed in the following issues:
#17009
#16286
#16389
A more reliable approach would be to use the pg statement start time provided by the query layer in the WriteQueryRPC it sends to docdb
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: