強制クラスタ再起動時に範囲外のコミットインデックスを拒否
影響対象
--force-new-cluster を指定して再起動するメンバー以前は、バックエンドの整合性インデックスが最後のWALエントリーまたはスナップショットのインデックスを上回っていると、メンバーが永久に起動不能になることがありました。現在は、利用可能なエントリーを超えるようコミットインデックスを調整して起動するのではなく、起動時にエラーを返します。また、再起動に失敗してもWALは変更されません。
根拠“return 0, nil, nil, nil, nil, fmt.Errorf("adjusted commit index %d exceeds the last WAL entry index %d", adjustedCommitIndex, lastIdx)” etcd-io/etcd/pull/22688 ↗
原文を表示
- Fix [`--force-new-cluster` permanently bricking a member whose backend consistent index is ahead of its WAL](https://github.com/etcd-io/etcd/pull/22688)github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.5.md