Skip to content
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

After truncating a table in TiDB, the old table's stats meta is not deleted #49663

Closed
hi-rustin opened this issue Dec 21, 2023 · 0 comments · Fixed by #49664
Closed

After truncating a table in TiDB, the old table's stats meta is not deleted #49663

hi-rustin opened this issue Dec 21, 2023 · 0 comments · Fixed by #49664

Comments

@hi-rustin
Copy link
Member

hi-rustin commented Dec 21, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduction step (Required)

  1. Create a table: create table t (c1 int, c2 int)
  2. Insert some data: insert into t values (1,2),(2,2),(6,2),(11,2),(16,2)
  3. Analyze the table: analyze table t
  4. Wait for 20min, Truncate the table t: truncate table t
  5. Wait for 15min, check the stats meta again.

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

The old table stats meta gets deleted.

3. What did you see instead (Required)

It still exists in the table.

4. What is your TiDB version? (Required)

master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant