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

FollowerState.inLogSync can be incorrectly cleared in appendEntriesAsync

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • server
    • None

    Description

      FollowerState.inLogSync is to indicate that the follower is writing log/statemachine data. So that it should not time out to start a leader election. However, it is not working correctly in the async case: suppose there are two or more outstanding appendEntriesAsync calls, the first completed call will clear inLogSync even if the other calls are still in progress.

      Attachments

        1. r443_20181130.patch
          18 kB
          Tsz-wo Sze
        2. r443_20181201.patch
          18 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: