GlenGeng opened a new pull request #151:
URL: https://github.com/apache/incubator-ratis/pull/151


   ## What changes were proposed in this pull request?
   
   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
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-1001
   
   ## How was this patch tested?
   
   CI
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to