You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Glen Geng (Jira)" <ji...@apache.org> on 2020/07/14 08:48:00 UTC

[jira] [Updated] (RATIS-1001) add currentTerm to LeaderInfoProto for supporting SCM-HA.

     [ https://issues.apache.org/jira/browse/RATIS-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glen Geng updated RATIS-1001:
-----------------------------
    Summary: add currentTerm to LeaderInfoProto for supporting SCM-HA.  (was: expose currentTerm to LeaderInfoProto for supporting SCM-HA.)

> add currentTerm to LeaderInfoProto for supporting SCM-HA.
> ---------------------------------------------------------
>
>                 Key: RATIS-1001
>                 URL: https://issues.apache.org/jira/browse/RATIS-1001
>             Project: Ratis
>          Issue Type: Improvement
>          Components: server
>            Reporter: Glen Geng
>            Assignee: Glen Geng
>            Priority: Major
>
>  During SCM-HA, SCM not only needs to know whether it is a leader, but also needs to know which term it is in charge of.
>  
> Assume such a case: underlying raft node was leader on term 1, then step down as follower on term 2, then init election and become leader again on term 3. If term is not exposed together with leader information, SCM can not distinguish a leader of term 1 from that of term 3.
>  
> BTW the way, according to [~nanda]'s design, SCM need propagate its term to Datanode, RaftServerImpl::getRoleInfoProto will be a good place to expose term from Ratis to SCM
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)