Can I stop the cluster if there is a TiKV in pending offline status?

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

Original topic: 有tikv 处于 pending offline 状态,可以 stop 集群吗?

| username: 数据库菜鸡

[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]
There is a TiKV in a pending offline state, can I stop the cluster?
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: h5n1 | Original post link

You can stop, but the offline process is not yet complete.

| username: cassblanca | Original post link

Wait until it is completed before stopping. Although there are 3 replicas, it is to avoid data loss or corruption.

| username: Kongdom | Original post link

You can stop the cluster.

| username: caiyfc | Original post link

You can stop, but it’s not recommended. If a replica is lost, it needs to be replenished, which increases the risk.

| username: 有猫万事足 | Original post link

It is important to note that after taking a TiKV offline, the requirement of having a minimum of 3 replicas must still be met. Otherwise, it might get stuck indefinitely.

I once scaled down one of the three TiKVs in my test environment, and it remained pending offline for several weeks. :joy:

| username: Jellybean | Original post link

If there is a TiKV in the pending offline state, it indicates that a node is in the process of “going offline” and is migrating data to other nodes to ensure the requirement of three replicas. When a node is in this state, it means that the cluster has data with only two replicas, which is important to note.

Of course, the cluster’s service is still normal at this time. If you want to stop the cluster, it will not block you, and you can proceed with the operation. However, when you restart the cluster, it will continue to migrate data to other nodes and remain in the pending offline state until all data is migrated to other nodes and reaches the tombstone state.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.