-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
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.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.This bug affects the 9.0.x versions.component/pdseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
1. Minimal reproduce step (Required)
Let's assume at T1 we have a resource group rg1
with QUERY_LIMIT
like:
ALTER RESOURCE GROUP rg1 QUERY_LIMIT=(EXEC_ELAPSED='60s', ACTION=KILL, WATCH=SIMILAR DURATION='10m');
We change this resource group at T2 to:
ALTER RESOURCE GROUP rg1 QUERY_LIMIT=(RU = 1000, ACTION=SWITCH_GROUP(default), WATCH=SIMILAR DURATION='10m');
Then, a SQL query that starts between T1 and T2 reaches its previous EXEC_ELAPSED
threshold at T3, triggering a watch rule that uses the expired QUERY_LIMIT
settings to be added.
2. What did you expect to see? (Required)
Once the QUERY_LIMIT
settings are changed after T2, the old watch rule should not take effect any more.
3. What did you see instead (Required)
After T3, both types of rules will be triggered within a maximum of 10 minutes.
4. What is your TiDB version? (Required)
zier-one
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.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.This bug affects the 9.0.x versions.component/pdseverity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.