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

RaftServer may lose FollowerState

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.1.1
    • 3.2.0
    • server
    • None
    • Patch

    Description

      When RaftServer starts, startComplete.compareAndSet(false, true) may occur after LeaderElection, in which case FollowerState may be lost
       
      1. Start the FollowerState thread, then Follower becomes candidate before startComplete is set to true

      2. Due to startComplete is false currently, so this leaderElection will ending
       

      3. Then the FollowerState thread will exit, causing the raftServer to lose role information

       

      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 - 2.5h
                  2.5h