You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original description is "To append log entries, simply save all log entries at raft.Ready.Entries to raftdb and delete any previously appended log entries which will never be committed. Also, update the peer storage’s RaftLocalState and save it to raftdb."
what log is "delete any previously appended log entries which will never be committed" ?
I looked at previous implementations of TIKV, the deleted log entries is the index between in [raft.Ready.Entries first index , the peer.raftState.LastIndex], why delete these ? writes to the new entries should override the original log, maybe just delete the log which index between in [raft.Ready.Entries last index, the peer.raftState.LastIndex]
The text was updated successfully, but these errors were encountered:
I'm blind,your impl is delete the log which index between in [raft.Ready.Entries last index, the peer.raftState.LastIndex], sorry, but I would suggest that this logical description be a little bit more detailed, right?
The original description is "To append log entries, simply save all log entries at raft.Ready.Entries to raftdb and delete any previously appended log entries which will never be committed. Also, update the peer storage’s RaftLocalState and save it to raftdb."
what log is "delete any previously appended log entries which will never be committed" ?
I looked at previous implementations of TIKV, the deleted log entries is the index between in [raft.Ready.Entries first index , the peer.raftState.LastIndex], why delete these ? writes to the new entries should override the original log, maybe just delete the log which index between in [raft.Ready.Entries last index, the peer.raftState.LastIndex]
The text was updated successfully, but these errors were encountered: