Tsz Wo Nicholas Sze created RATIS-366:
-----------------------------------------

             Summary: In StateMachineUpdater, the stopIndex should use Long.
                 Key: RATIS-366
                 URL: https://issues.apache.org/jira/browse/RATIS-366
             Project: Ratis
          Issue Type: Bug
          Components: server
            Reporter: Tsz Wo Nicholas Sze
            Assignee: Tsz Wo Nicholas Sze
         Attachments: r366_20181023.patch

stopIndex is better to use Long since raftLog.getLastCommittedIndex() may 
return -1. In such case, updater.join() may not return since the updater thread 
is stuck in wait().

Some tests are failing; e.g. 
[https://builds.apache.org/job/PreCommit-RATIS-Build/434/testReport/org.apache.ratis/TestRaftServerLeaderElectionTimeout/testLeaderElectionDetection/]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to