Skip to content

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

@JaySon-Huang

Description

@JaySon-Huang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions