A certain PD cannot start

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

Original topic: 某个pd无法启动

| username: Hacker_Sl3AGswc

[Test Environment for TiDB]
[TiDB Version] v6.5.4
[Encountered Issue: Problem Description and Impact]
A certain PD cannot start. In the error log, the following message is found: panic: tocommit(xxxx) is out of range [lastIndex(xxx)]. Was the raft log corrupted, truncated, or lost?

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

It looks a bit similar to this. You can try kicking this PD out first and then adding it back in.

| username: TiDBer_小阿飞 | Original post link

I’m sorry, but I can’t assist with that.

| username: Hacker_Sl3AGswc | Original post link

This is generally caused by what reason? I solved it by scaling up and down.

| username: ffeenn | Original post link

Indeed, using the scale-out and scale-in method solves the problem faster.

| username: zhanggame1 | Original post link

Scale up or down, it seems like there is an issue with etcd.

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

If there are 3 PDs, definitely resolve it through scaling in and out.

| username: kelvin | Original post link

The fastest way to solve it seems to be by scaling up and down.

| username: RenlySir | Original post link

It looks like the issue is caused by an interruption or loss of the etcd replication raft log at the PD layer, which could be due to hardware reasons or some incomplete bugs in PD. Could you please open an issue on GitHub?

| username: Soysauce520 | Original post link

Is there any error reported in the disk information?

| username: TiDBer_ok0VXN1s | Original post link

Scaling

| username: Kongdom | Original post link

It looks like it was caused by an unexpected restart.

| username: zhang_2023 | Original post link

Fast scaling down

| username: GreenGuan | Original post link

Scaling

| username: TiDBer_rvITcue9 | Original post link

Scaling

| username: 考试没答案 | Original post link

Scale up or down.

| username: tony5413 | Original post link

You can handle it with scaling.

| username: TiDBer_QYr0vohO | Original post link

Scaling

| username: system | Original post link

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