-
Notifications
You must be signed in to change notification settings - Fork 411
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 may crash under very frequent truncate table, change column type and insert data #3777
Comments
Is the recoverable? @lidezhu |
This can be recovered by drop the relevant tables in tiflash side because the tables that may cause this problem are already dropped in tidb. And tiflash keep them just for the |
Similar issue with the same root cause #1664 |
Lower the severity since it is a very rare case. Only seen in testing env. And it is more like a design flaw. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
It may occurs with a small probability under the following scenario
The reason may be that if a table is truncated, then it become a tombstone table in tiflash. And tiflash has two schema sync mode: incremental sync and full sync. If the schema version changed a lot, then it will trigger a full sync. But the tombstone table schema change is not showed in the full sync list, so it's schema change cannot be seen. And tiflash cannot use the old schema to decode the new data.
2. What did you expect to see? (Required)
tiflash works normally
3. What did you see instead (Required)
tiflash crash
4. What is your TiFlash version? (Required)
the problem may influence all version
The text was updated successfully, but these errors were encountered: