Skip to content

Why is MsgSnapStatus considered a local message? #502

@gmoshkin

Description

@gmoshkin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionA question to be answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions