mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: fix snapshot panic message
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
01fc2901b6
commit
f205b22434
@ -1069,12 +1069,11 @@ func (s *EtcdServer) applySnapshot(ep *etcdProgress, apply *apply) {
|
||||
|
||||
if apply.snapshot.Metadata.Index <= ep.appliedi {
|
||||
if lg != nil {
|
||||
// expect apply.snapshot.Metadata.Index > ep.appliedi + 1
|
||||
lg.Panic(
|
||||
"unexpected snapshot from future index",
|
||||
"unexpected leader snapshot from outdated index",
|
||||
zap.Uint64("current-snapshot-index", ep.snapi),
|
||||
zap.Uint64("current-applied-index", ep.appliedi),
|
||||
zap.Uint64("incoming-snapshot-index", apply.snapshot.Metadata.Index),
|
||||
zap.Uint64("incoming-leader-snapshot-index", apply.snapshot.Metadata.Index),
|
||||
)
|
||||
} else {
|
||||
plog.Panicf("snapshot index [%d] should > appliedi[%d] + 1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user