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

/tiflash/table/sync not cleared #37168

Closed
breezewish opened this issue Aug 17, 2022 · 0 comments · Fixed by #37184
Closed

/tiflash/table/sync not cleared #37168

breezewish opened this issue Aug 17, 2022 · 0 comments · Fixed by #37184

Comments

@breezewish
Copy link
Member

breezewish commented Aug 17, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Add TiFlash replica to a table, then frequently truncating the table.

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

Only one key in the /tiflash/table/sync prefix in PD etcd, if the table is not synced, or no key remains, if the replica sync is finished.

3. What did you see instead (Required)

Multiple keys are remained and uncleared in PD etcd. When there are too many keys left, there will be huge scan cost when querying for INFORMATION_SCHEMA.TIFLASH_REPLICA. This will affect other etcd queries and features rely on etcd, for example, DDLs.

4. What is your TiDB version? (Required)

master

@breezewish breezewish added type/bug The issue is confirmed as a bug. severity/moderate affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.0 affects-6.1 affects-6.2 labels Aug 17, 2022
@xhebox xhebox removed affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. labels Oct 28, 2022
@xhebox xhebox removed affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. labels Oct 28, 2022
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.

2 participants