Revision 563713e128e1b3ccbbd8cd369a117da1f91ddd58 authored by Benjamin Wang on 11 November 2022, 09:35:26 UTC, committed by Benjamin Wang on 11 November 2022, 09:35:26 UTC
`unsafeCommit` is called by both `(*batchTxBuffered) commit` and `(*backend) defrag`. When users perform the defragmentation operation, etcd doesn't update the consistent index. If etcd crashes(e.g. panicking) in the process for whatever reason, then etcd replays the WAL entries starting from the latest snapshot, accordingly it may re-apply entries which might have already been applied, eventually the revision isn't consistent with other members. Refer to discussion in https://github.com/etcd-io/etcd/pull/14685 Signed-off-by: Benjamin Wang <wachao@vmware.com>
1 parent c2378be