-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTL job hangs in running state after decreasing tidb_ttl_delete_worker_count
#55561
Comments
One reason is that when delete worker is canceling, the statistics will be updated: Lines 118 to 121 in cf44157
However, it is not correct. Because only Lines 98 to 104 in cf44157
And then, then tidb/ttl/ttlworker/task_manager.go Lines 582 to 584 in cf44157
|
Maybe, if the jumping statement is |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Then wait ttl job is running, after ttl job is running do:
Wait ttl job finished.
2. What did you expect to see? (Required)
The TTL job will finally finish.
3. What did you see instead (Required)
The TTL job will never finish because some task is always in running state:
You can see that
total_rows(32766) > success_rows(32368) + error_rows(1)
. The task will only seen as finished when they are equal.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: