trigger TTL job manually may hang for a long time #45868
Labels
affects-6.6
affects-7.0
affects-7.1
affects-7.2
affects-7.3
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
Some TTL integration test hangs and we found the goroutine is blocked with the below stack:
It seems we use
NewTimer
by mistake (we should useNewTicker
) here:tidb/ttl/client/command.go
Line 164 in c512ede
The bug exists in several versions but in the earlier versions, this will not be triggered because the trigger action will be returned fast even max tasks limit is reached. But in the current version, trigger action will wait for the task limit condition.
This bug only affects integration tests.
The text was updated successfully, but these errors were encountered: