Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[ERROR] thread 'raftstore-4' panicked '[region 2] 6 unexpected raft log index: last_index 522662 < applied_index 522679 #4731
Please answer these questions before submitting your issue. Thanks!
2017/10/10 11:20:05.544 panic_hook.rs:99: [ERROR] thread 'raftstore-4' panicked '[region 2] 6 unexpected raft log index: last_index 522662 < applied_index 522679' at "src/raftstore/store/peer_storage.rs:483"
Because your machine has met power failure, there has been some data lost.
If the region only has one or two replicas, then the store can be restarted by setting the last index to apply index in theory, though we don't provide any tool to do that yet, which may be available in the following weeks.
However if the region has not less than 3 replicas, it's not safe to edit the last index anymore, which may lead to two leaders in a same term. You can use pd-ctl to delete the fail store, then add a new store. We are also working on supporting deleting just one peer from the fail store.
Set the configuration
@BusyJay Thanks for your quick reply!
I set the raftstore.sync-log from false to true on my three TiKV servers (10.3.1.1, 10.3.1.3, 10.3.1.5
TiDB Cluster Part