Backup restore error: code = Unavailable desc = not leader

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: br恢复报错:code = Unavailable desc = not leader

| username: 滴滴嗒嘀嗒

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] After dropping the table, shut down TiDB and immediately use BR for recovery.
[Encountered Problem: Problem Phenomenon and Impact]
Recovery error: Error: scan regions from start-key:7480000000000007FF345F728000000000FF0843BA0000000000FA, err: rpc error: code = Unavailable desc = not leader: [BR:PD:ErrPDBatchScanRegion]batch scan region

[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page

[Attachments: Screenshots/Logs/Monitoring]

| username: 像风一样的男子 | Original post link

The TiDB node is down. Restore it to normal first before investigating the BR issue.