Get desktop application:
View/edit binary Protocol Buffers messages
Used as response type in: tinykvpb.TinyKv.Raft, tinykvpb.TinyKv.Snapshot
(message has no fields)
Snapshot sending and reciveing related messages. Not included in the course scope.
Used in:
Normal indicates that this Peer is normal; Tombstone shows that this Peer has been removed from Region and cannot join in Raft Group.
Used in:
Used to store the persistent state for Raft state machine.
Record the applied index of the state machine to make sure not apply any index twice after restart.
Record the index and term of the last raft log that have been truncated. (Used in 2C)
Used to store the persistent state for Raft, including the hard state for raft and the last index of the raft log.
The message sent between Raft peer, it wraps the raft meessage with some meta information.
Used as request type in: tinykvpb.TinyKv.Raft
Used as field type in:
true means to_peer is a tombstone peer and it should remove itself.
Region key range [start_key, end_key). (Used in 3B)
The truncated state for Raft log compaction.
Used in:
Used to store Region information and the corresponding Peer state on this Store.
Used in:
Used as request type in: tinykvpb.TinyKv.Snapshot
Used in:
The persistent identification for Store. It used to recover the store id after restart.