TiKV has been decommissioned, but there are still update logs and data

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

Original topic: tikv已经下线,但是仍然有更新日志和数据

| username: 奋斗的大象

tikv-20163 has already been taken offline, but there are still data updates in the installation directory.

| username: gary | Original post link

Display the cluster status to see if the TiKV data has been scheduled and completed.

| username: chnage | Original post link

When scaling in a cluster, certain components will not immediately stop services and delete data. Instead, you need to wait for the data scheduling to complete and then manually execute the tiup cluster prune command to clean up.

| username: TiDBer_rvITcue9 | Original post link

Manually execute the tiup cluster prune command to clean up.

| username: Kongdom | Original post link

Was it decommissioned through scaling down? Check the cluster status with display to see if the decommissioning is complete.

| username: TiDBer_5cwU0ltE | Original post link

It should be the internal information of the system. If it doesn’t work, just disconnect the network.

| username: WalterWj | Original post link

The TiKV process hasn’t been closed, right? The scaling down operation probably hasn’t been completed.

| username: CuteRay | Original post link

The offline process of TiKV goes through several states: up → offline → tombstone. When the TiKV status reaches tombstone, it means the offline process is complete.

TiDB Scheduling | PingCAP Documentation Center

| username: 这里介绍不了我 | Original post link

Check if the node status is tombstone, and then perform cleanup with tiup cluster prune.

| username: TiDBer_jYQINSnf | Original post link

Just delete it when it’s offline, why let it keep running?

| username: DBAER | Original post link

Check the display and check the status, it might be scaling down.

| username: Soysauce520 | Original post link

Has it been confirmed to go offline? Check the display to see if it is still migrating regions.

| username: ffeenn | Original post link

Before deleting the node, it was running. Carefully compare it with the TiKV offline schedule mentioned above. Check which step you are at.

| username: TiDBer_aaO4sU46 | Original post link

tiup cluster prune

| username: redgame | Original post link

Check the TiKV process, is it still not there?

| username: danghuagood | Original post link

Use the command tiup cluster display <cluster-name> to check the status of the TiKV:

If it shows “Offline” status, it means that Region migration is in progress.
If it shows “Tombstone” status, it means that the node is completely offline.

At this point, you can use the command tiup cluster prune <cluster-name> to completely remove the offline node.

| username: zhang_2023 | Original post link

Is the process still running?

| username: zhanggame1 | Original post link

Try using “tiup cluster display” to check. The offline process might not be completed yet.

| username: 源de爸 | Original post link

It is recommended to wait for a while, as going offline takes time. If the issue persists after a long time, then you need to check the error logs.

| username: 普罗米修斯 | Original post link

First, use tiup cluster display to confirm that the node is in tombstone mode. Suspect that it hasn’t been completely decommissioned yet.