Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1001

add currentTerm to LeaderInfoProto for supporting SCM-HA.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • server
    • None

    Description

       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, leader SCM need propagate its term to Datanode, RaftServerImpl::getRoleInfoProto() will be a good place to expose term from Ratis to SCM

       

      Attachments

        Activity

          People

            glengeng Glen Geng
            glengeng Glen Geng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h