TiKV Unexpected Crash panic_mark_file

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

Original topic: Tikv 意外崩溃 panic_mark_file

| username: beacoolkid

[TiDB Usage Environment] Production Environment
[TiDB Version] v4.0.7
[Reproduction Path] Operations performed that led to the issue
[Encountered Issue: Problem Phenomenon and Impact]

TiKV nodes repeatedly restart and fail to start, showing panic_mark_file. Can this file be directly deleted? The node has been set to offline, but other TiKV nodes still report errors.

[2023/04/08 22:08:09.839 +08:00] [WARN] [raft_client.rs:296] [“RPC batch_raft fail”] [err=“Some(RpcFailure(RpcStatus { status: 14-UNAVAILABLE, details: Some("failed to connect to all addresses") }))”] [sink_err=“Some(RpcFinished(Some(RpcStatus { status: 14-UNAVAILABLE, details: Some("failed to connect to all addresses") })))”] [to_addr=172.16.21.69:20160]

[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

tikv.log error [2023/04/08 02:11:30.679 +08:00] [FATAL] [server.rs:303] [“panic_mark_file /opt/tidb/data/panic_mark_file exists, there must be something wrong with the db.”]

tikv_stderr.log
L5 have overlapping ranges ‘7A7480000000000015FFFE5F698000000000FF0000070419AF6090FF0600000003800000FF006F081485000000FCF9E6A061F3E7FFF4’ seq:7592313983558, type:0 vs. ‘7A7480000000000000FF3F5F698000000000FF0000010380000000FF00001D1C03800000FF0000000000038000FF00000000000E0380FF0000000000009900FEF9E8ACBF2FBFFFFE’ seq:7580803493096, type:0

| username: tidb菜鸟一只 | Original post link

Understood. Please provide the Chinese text you need translated.

| username: Jellybean | Original post link

It seems like a strange issue has occurred. There were quite a few issues with the lower versions before. It is recommended to upgrade to a higher version, such as 6.1 or 6.5.