PD node fails to start

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

Original topic: pd 节点起不来

| username: 啦啦啦啦啦

[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path]
[Encountered Issue: Issue Phenomenon and Impact]
One of the PD nodes shows down and cannot start.
The log reports:
[PANIC] [log.go:203] [“tocommit(936081) is out of range [lastIndex(936047)]. Was the raft log corrupted, truncated, or lost?”]
Is it necessary to scale down this PD first and then scale it up again?

| username: 啦啦啦啦啦 | Original post link

To add, the system logs show that the machine automatically rebooted a few days ago.

| username: xfworld | Original post link

It seems so, everything PANICed…

Looking at the logs, it appears that files were lost.

| username: xingzhenxiang | Original post link

If there is an issue with a single node, scaling in and out is the easiest way to solve the problem, and the operation is very simple. If you want to challenge your understanding of TiDB, you can investigate step by step.

| username: 啦啦啦啦啦 | Original post link

Thank you for your reply. I first scaled down and then scaled up to restore it.

| username: 啦啦啦啦啦 | Original post link

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