Issues Encountered During TiKV Scale-In in v4.0.8

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

Original topic: v4.0.8 tikv 缩容遇到的问题

| username: Mwkk

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]

There is a cluster undergoing architecture adjustment. When taking a TiKV offline, querying the store through PD shows one region, but querying the information of this region individually indicates the count is zero. I would like to ask how to safely take this TiKV offline.

| username: GreenGuan | Original post link

Refer to this command:

operator add remove-peer 1 2 // Remove a replica of Region 1 from store 2

| username: Mwkk | Original post link

First, query the region ID that is not 3, then use the remove peer method mentioned above to delete that region.

| username: ziptoam | Original post link

Use the tiup cluster display <cluster_name> command to check the cluster status and confirm the status of the target TiKV node. If the node is already marked as offline (such as PendingOffline or Offline), proceed to the next step. If it is not yet marked, you need to perform the offline operation first.