[
https://issues.apache.org/jira/browse/RATIS-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175368#comment-17175368
]
runzhiwang edited comment on RATIS-967 at 8/11/20, 8:50 AM:
------------------------------------------------------------
[~szetszwo]
{quote}When a lower priority server ask a higher priority server to vote, the
lower priority server will abort the election if the higher priority server
replies.{quote}
For example, the priority of s1, s2, s3 is 4, 5, 6, and s3 is the leader, when
s3 crash, s1 and s2 start an election, and then s1 abort election because it's
priority is less than s2's, but s2's log is lag behind than s1. Then it will
cause no leader can be elected.
{quote}No sure why they need two priority values.{quote}
sofa-jraft need two priority, because they use two priority to decide whether
start election, with no need to communicate with other servers.
was (Author: yjxxtd):
[~szetszwo]
{quote}When a lower priority server ask a higher priority server to vote, the
lower priority server will abort the election if the higher priority server
replies.{quote}
For example, the priority of s1, s2, s3 is 4, 5, 6, and s3 is the leader, when
s3 crash, s1 and s2 start an election, and then s1 abort election because it's
priority is less than s2's, but s2's log is lag behind than s1. Then it will
cause no leader can be elected.
sofa-jraft need two priority, because they use two priority to decide whether
start election, with no need to communicate with other servers.
> Transfer leadership from leader to follower
> -------------------------------------------
>
> Key: RATIS-967
> URL: https://issues.apache.org/jira/browse/RATIS-967
> Project: Ratis
> Issue Type: Sub-task
> Components: raft-group
> Affects Versions: 0.5.0
> Reporter: maobaolong
> Assignee: runzhiwang
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> With this api, we can transition leader state to a specify one for datanodes
> in the same pipeline, OM group and SCM group.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)