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

ddl: drop table should clean the placement bundle rules #28686

Closed
AilinKid opened this issue Oct 9, 2021 · 1 comment · Fixed by #28687
Closed

ddl: drop table should clean the placement bundle rules #28686

AilinKid opened this issue Oct 9, 2021 · 1 comment · Fixed by #28687
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@AilinKid
Copy link
Contributor

AilinKid commented Oct 9, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tiup playground v5.0.1 --tiflash 0  --kv 2 --db 1
create table t(a int) constraints="[-region=hdd]"
http://127.0.0.1:2379/pd/api/v1/config/placement-rule  // here you will find the placement rule for the new table t
set the appropriate gc_life_time and gc_life_interval
drop table t
select * from mysql.gc_delete_range                    // make sure the dropped table has been GCed.
http://127.0.0.1:2379/pd/api/v1/config/placement-rule  // here you will still find the placement rule for the new table t

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

After the gc is done, there will be no placement rules for the table t

3. What did you see instead (Required)

After the gc is done, placement rules for the table t still exists.

4. What is your TiDB version? (Required)

master

@AilinKid AilinKid added the type/bug The issue is confirmed as a bug. label Oct 9, 2021
@AilinKid AilinKid self-assigned this Oct 9, 2021
@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants