Skip to content

Error about updating tidb_ttl_table_status #40231

@dveeden

Description

@dveeden

Bug Report

1. Minimal reproduce step (Required)

Create a table with a TTL

2. What did you expect to see? (Required)

No TTL related errors in the logs

3. What did you see instead (Required)

[2022/12/29 09:28:44.308 +01:00] [ERROR] [job_manager.go:413] ["change ttl job status"] [ttl-worker=manager] [jobID=ceae5034-8752-11ed-b1e3-5405db7aad56] [table=t1] [error="execute sql: UPDATE mysql.tidb_ttl_table_status SET current_job_status = %? WHERE table_id = %? AND current_job_status = %? AND current_job_id = %?: unsupported 1-th argument: running"] [id=ceae5034-8752-11ed-b1e3-5405db7aad56]

Same message, but formatted differently:

[2022/12/29 09:28:44.308 +01:00]
[ERROR]
[job_manager.go:413]
["change ttl job status"]
[ttl-worker=manager]
[jobID=ceae5034-8752-11ed-b1e3-5405db7aad56] [table=t1]
[error="execute sql: UPDATE mysql.tidb_ttl_table_status SET current_job_status = %? WHERE table_id = %? AND current_job_status = %? AND current_job_id = %?: unsupported 1-th argument: running"]
[id=ceae5034-8752-11ed-b1e3-5405db7aad56]

4. What is your TiDB version? (Required)

sql> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v6.5.0
Edition: Community
Git Commit Hash: 706c3fa3c526cdba5b3e9f066b1a568fb96c56e3
Git Branch: heads/refs/tags/v6.5.0
UTC Build Time: 2022-12-27 03:50:44
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
1 row in set (0.0011 sec)

Metadata

Metadata

Assignees

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.severity/minortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions