Skip to content

ttl report error for some configuration #51825

@lcwangchao

Description

@lcwangchao

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (a int, b timestamp) ttl = b + interval "1" DAY;

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

no error and TTL should run normally.

3. What did you see instead (Required)

The TTL does not run successfully and we can see an error message:

[2024/03/15 17:47:44.757 +08:00] [ERROR] [worker.go:398] ["error occurs when invoking hook OnTimerEvent"] [groupID=ttl] [hookClass=tidb.ttl] [timerID=183245] [timerNamespace=default] [timerKey=/tidb/ttl/physical_table/242/242] [eventID=2933aeb402904e03abf9c8bfa5f3ee20] [requestRetry=0] [error="[types:1292]Incorrect datetime value: '_utf8'1''"] [retryAfter=10s]

4. What is your TiDB version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions