Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tikv offline 节点上的region无法删除
[TiDB Usage Environment] Production Environment
[TiDB Version] 4.0
[Reproduction Path] With 5 TiKV nodes, after mistakenly deleting the directories of 2 nodes, one node had a problematic status, so it was removed and became offline. I want it to become tombstone status and then delete it.
[Encountered Problem: Symptoms and Impact]
[Resource Configuration] 5 TiKV nodes, 3 PD nodes, 2 TiDB nodes
TiKV 2T/node
Using pd-ctl region can find regions, and there are four regions on this store.
However, the command operator add remove-peer 1 2 directly reports not found.
Found that the values of the four regions are null.
Currently, there is no way to delete these four regions, all of them are not found.
There is an unsafe recover operation on asktug, go ahead and do it. It seems that multiple replica data has been lost.
Now there’s a problem: after I restarted all the TiKV nodes, all the nodes became offline.
In what scenarios would data be lost? 
curl -X POST http://xxx:2379/pd/api/v1/store/1/state?state=Stombstone then delete this node, delete the data directory and rejoin
Although these regions still cannot be deleted, this node was originally a faulty node, and only these four regions have problems. So it can be operated in this way.
Encountered multiple replicas, need to perform unsafe recovery, data may be lost.
Try recreating the problematic regions.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.