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

Provide a tool for rebuild a specify table in TiFlash side #5

Open
JaySon-Huang opened this issue Dec 20, 2021 · 0 comments
Open

Provide a tool for rebuild a specify table in TiFlash side #5

JaySon-Huang opened this issue Dec 20, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@JaySon-Huang
Copy link
Owner

If the schema of a table in the TiFlash side gets broken for some reason, there could be a less costly approach for rebuilding that table:

  1. Apply alter table <table_name> set tiflash replica 0 on TiDB and wait till all regions of that table get removed from TiFlash
  2. Use drop table db_<db_id>.t_<table_id> through TiFlash HTTP API to drop that table in TiFlash side
  3. Trigger the sync schema through TiFlash HTTP API to fetch and rebuild that table schema
  4. Apply alter table <table_name> set tiflash replica <num> on TiDB to rebuild TiFlash regions data
@JaySon-Huang JaySon-Huang added the help wanted Extra attention is needed label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant