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

Segmented Raft log rolls over segment frequently

    XMLWordPrintableJSON

Details

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

    Description

      With statemachine implementation which abstract out the state machine data from the append entries, frequent log rollovers can be observed.

      Looking into the code, this seems to be because of 2 reasons.

      a) LogSegment#append, updates the total size. However the size which needs to be considered should not include the statemachine data.

      b) Also SegmentRaftLog#isSegmentFull also considers the total proto object. Here too, only the entry to be written to the log should be considered.

      Attachments

        1. RATIS-253.patch
          0.9 kB
          Rajeshbabu Chintaguntla

        Issue Links

          Activity

            People

              rajeshbabu Rajeshbabu Chintaguntla
              msingh Mukul Kumar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: