-
Notifications
You must be signed in to change notification settings - Fork 6k
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.component/pdseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Currently tidb_runaway_watch
relies on struct QuarantineRecord
to store time as UTC, while RUNAWAY_WATCHES
directly selects tidb_runaway_watch
to convert to local time.
mysql> SELECT * FROM mysql.tidb_runaway_watch limit 1\G
*************************** 1. row ***************************
id: 1
resource_group_name: default
start_time: 2024-07-16 07:34:14.137009
end_time: 2024-07-16 07:44:14.137009
watch: 1
watch_text: select count(*) from orders where o_orderdate = '1994-11-12'
source: 127.0.0.1:4000
action: 3
1 row in set (0.00 sec)
mysql> SELECT * FROM INFORMATION_SCHEMA.RUNAWAY_WATCHES where id =1\G
*************************** 1. row ***************************
ID: 1
RESOURCE_GROUP_NAME: default
START_TIME: 2024-07-16 15:34:14
END_TIME: 2024-07-16 15:44:14
WATCH: Exact
WATCH_TEXT: select count(*) from orders where o_orderdate = '1994-11-12'
SOURCE: 127.0.0.1:4000
ACTION: Kill
1 row in set (0.01 sec)
2. What did you expect to see? (Required)
RUNAWAY_WATCHES
displays UTC as well.
3. What did you see instead (Required)
RUNAWAY_WATCHES
displays local time while tidb_runaway_watch
displays UTC
4. What is your TiDB version? (Required)
master
Metadata
Metadata
Assignees
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.component/pdseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.