-
Notifications
You must be signed in to change notification settings - Fork 437
Description
I was wondering, why raft-rs doesn't support sending snapshot status messages via the buit-in message channel. The doc-comments state that the application must report back to the leader about the snapshot status, but there doesn't seem to be a way to do it by means of the provided api. Looks like I have to implement my own separate way to pass a message from a follower to the leader that the snapshot was processed (or failed to be processed).
If I try sending a message with type MsgSnapStatus to the leader, it will be ignored because it is considered a "local" message:
https://github.com/tikv/raft-rs/blob/master/src/raw_node.rs#L402-L411
So my question is, what is the reason for MsgSnapStatus being a local message? Why can't it be sent from a follower to the leader?