ngaut/unistore

Some valid Flush ChangeSet are unintentionally skipped to apply.

Closed this issue · 1 comments

This bug causes the process to panic.

grep 'skip duplicated flush commitTS' tikv.log
[2021/07/28 13:33:22.215 +00:00] [INFO] [meta.go:279] ["131:26 skip duplicated flush commitTS:69792, meta commitTS:71906"]
[2021/07/28 13:33:22.562 +00:00] [INFO] [meta.go:279] ["131:26 skip duplicated flush commitTS:70600, meta commitTS:71906"]
[2021/07/28 13:33:23.197 +00:00] [INFO] [meta.go:279] ["131:26 skip duplicated flush commitTS:71258, meta commitTS:71906"]
[2021/07/28 13:33:23.998 +00:00] [INFO] [meta.go:279] ["131:26 skip duplicated flush commitTS:71906, meta commitTS:71906"]

This bug is correlated with leader transfer

grep '131 became' tikv.log
[2021/07/28 13:32:16.611 +00:00] [INFO] [raft.go:765] ["131 became follower at term 5"]
[2021/07/28 13:32:16.611 +00:00] [INFO] [raft.go:794] ["131 became pre-candidate at term 5"]
[2021/07/28 13:32:16.617 +00:00] [INFO] [raft.go:778] ["131 became candidate at term 6"]
[2021/07/28 13:32:16.618 +00:00] [INFO] [raft.go:830] ["131 became leader at term 6"]
[2021/07/28 13:33:06.602 +00:00] [INFO] [raft.go:765] ["131 became follower at term 6"]
[2021/07/28 13:33:21.602 +00:00] [INFO] [raft.go:794] ["131 became pre-candidate at term 6"]
[2021/07/28 13:33:21.603 +00:00] [INFO] [raft.go:778] ["131 became candidate at term 7"]
[2021/07/28 13:33:21.604 +00:00] [INFO] [raft.go:830] ["131 became leader at term 7"]
hslam commented

Fixed by #615