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
Attachments
Issue Links
- breaks
-
RATIS-355 TestBatchAppend and TestFileStore* are failing
- Resolved