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

The old leader may send appendEntries after term changed

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1
    • Leader
    • None

    Description

      The leader will become a follower after receiving a higher term, but during this process, the old leader may be appending LogEntry, and the error log will be printed until LogAppenderDaemon is closed.

       
      I think we can put state.updateCurrentTerm (newTerm) later. Close LeaderState first before updating the term, and other operations remain unchanged.
       

      Attachments

        Issue Links

          Activity

            People

              tohsakarin__ yuuka
              tohsakarin__ yuuka
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m