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

`logMetadata` could miss appending the `metadataEntry` with the lastCommitIndex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1, 3.2.0
    • server
    • None

    Description

      Now, RaftLog appends a metadata entry with the lastCommitIndex and checks whether the entry at the lastCommitIndex is neither a metadata entry nor an entry with a smaller commit index.

      However, RaftLog doesn't always log metadata entries in order. Sometimes, it misses some commit indexes. For example:

      STATEMACHINELOGENTRY(1, 1)

      STATEMACHINELOGENTRY(1, 2)
      METADATAENTRY(commitIndex: 1)

      A METADATAENTRY is lost.
      The lastCommitIndex in the METADATAENTRY and  is a metadata entry, RaftLog won't append it.

      Attachments

        Issue Links

          Activity

            People

              wfps1210 Chung En Lee
              wfps1210 Chung En Lee
              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 - 1h 40m
                  1h 40m