-
Notifications
You must be signed in to change notification settings - Fork 409
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
Dropping table data is not atomic #1192
Comments
What is the status of this one? @JaySon-Huang @flowbehappy |
@ilovesoup We will discuss it next week. |
Table is regarded to be dropped after its metafile has been removed which is atomic. And metadata is removed before remove data. |
Now table's data will be dropped after it has passed the GC time. (See
SchemaSyncService::gc()
)But dropping table data is not atomic. When there is a large amount of data / deployed with multi-disks, dropping a table data could cost tens of seconds. If TiFlash crashes during dropping table data, some broken data may be left on disks and make TiFlash can NOT restart normally.
Workaround:
We could see which table is broken by tracking the logfile. Ensure whether that table id is able to remove data from disks by querying TiDB. Manually remove those files left on disks.
The text was updated successfully, but these errors were encountered: