Please answer these questions before submitting your issue. Thanks!
Can't start store with corrupted data.
raft2022/06/27 06:48:12 INFO: 16f9479304b9dfed switched to configuration voters=(1655433034800422893 1655433044971246865 1655433062803036836)
raft2022/06/27 06:48:12 16f9479304b9dfed state.commit 5 is out of range [4, 4]
panic: 16f9479304b9dfed state.commit 5 is out of range [4, 4]
goroutine 1 [running]:
log.(*Logger).Panicf(0xc0001c2ee0, {0x9bdc2d, 0x40a905}, {0xc00040ab40, 0x8e1dc0, 0x0})
log/log.go:231 +0x74
github.com/linkall-labs/vanus/raft.(*DefaultLogger).Panicf(0x16f9479304b9dfed, {0x9bdc2d, 0x0}, {0xc00040ab40, 0x0, 0x0})
github.com/linkall-labs/vanus/[email protected]/logger.go:137 +0x26
github.com/linkall-labs/vanus/raft.(*raft).loadState(0xc00024b600, {0x3, 0x3, 0x0})
github.com/linkall-labs/vanus/[email protected]/raft.go:1724 +0x19a
github.com/linkall-labs/vanus/raft.newRaft(0xc0001bdab8)
github.com/linkall-labs/vanus/[email protected]/raft.go:357 +0x6de
github.com/linkall-labs/vanus/raft.NewRawNode(0xc000100870)
github.com/linkall-labs/vanus/[email protected]/rawnode.go:49 +0x1d
github.com/linkall-labs/vanus/raft.RestartNode(0xc0001c2ee0)
github.com/linkall-labs/vanus/[email protected]/node.go:245 +0x2b
github.com/linkall-labs/vanus/internal/store/block/replica.New({0xa5f170, 0xc000116008}, 0x16f9479304b9dfed, {0xa5f288, 0xc0002255e0}, 0xc0001c2ee0, {0x7f1838cab7b8, 0xc000200280}, 0xc000416310)
github.com/linkall-labs/vanus/internal/store/block/replica/replica.go:131 +0x388
github.com/linkall-labs/vanus/internal/store/segment.(*server).makeReplicaWithRaftLog(0xc0002024e0, {0xa5f170, 0xc000116008}, 0x991780, {0xa5f288, 0xc0002255e0}, 0x885cc0)
github.com/linkall-labs/vanus/internal/store/segment/server.go:692 +0xf5
github.com/linkall-labs/vanus/internal/store/segment.(*server).recoverBlocks(0xc0002024e0, {0xa5f170, 0xc000116000}, 0xc00038faa0)
github.com/linkall-labs/vanus/internal/store/segment/recovery.go:86 +0x30e
github.com/linkall-labs/vanus/internal/store/segment.(*server).recover(0xc0002024e0, {0xa5f170, 0xc000116000})
github.com/linkall-labs/vanus/internal/store/segment/recovery.go:50 +0x20e
github.com/linkall-labs/vanus/internal/store/segment.(*server).Initialize(0xc0002024e0, {0xa5f170, 0xc000116000})
github.com/linkall-labs/vanus/internal/store/segment/server.go:132 +0x2c
main.main()
./main.go:82 +0x5d3