What happens if the leader recieves a vore request RPC

80 views
Skip to first unread message

vnmRD

unread,
Jul 20, 2022, 4:48:39 AM7/20/22
to raft-dev
So, I'm implementing Raft in Rust, during the test to check if the implementation works in a distributed scenario it happened that the leader received a vote request RPC from a follower that I assumes it didn't receive the heartbeat from the leader and started a new election process.

What should the leader and even the new candidate do?

Oren Eini (Ayende Rahien)

unread,
Jul 20, 2022, 5:12:32 AM7/20/22
to raft...@googlegroups.com
If the term is higher, it steps down.

Note that you'll typically have a pre-vote round, to ensure that you won't raise the term unnecessarily. 

On Wed, Jul 20, 2022 at 11:48 AM vnmRD <s.s...@affidaty.io> wrote:
So, I'm implementing Raft in Rust, during the test to check if the implementation works in a distributed scenario it happened that the leader received a vote request RPC from a follower that I assumes it didn't receive the heartbeat from the leader and started a new election process.

What should the leader and even the new candidate do?

--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/raft-dev/6a931b3b-9584-4975-9122-11dd9590e8b4n%40googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
  

vnmRD

unread,
Jul 20, 2022, 5:15:17 AM7/20/22
to raft-dev
Ok, i couldn't find in the raft paper the "pre-vote round", can you link it in some way?

Thank you

Oren Eini (Ayende Rahien)

unread,
Jul 20, 2022, 5:21:18 AM7/20/22
to raft...@googlegroups.com

vnmRD

unread,
Jul 20, 2022, 5:25:05 AM7/20/22
to raft-dev
Thank you!
Reply all
Reply to author
Forward
0 new messages