Description
SegmentedRaftLog uses a BufferedWriteChannel for writing the log.
FinalizeLogSegment task is enqueued when a segment fills up. This task closes the channel and does cleanup.
SegmentedRaftLogOutputStream.close() internally invokes BufferedWriteChannel.flush(false)
the false passed to flush indicates not to flush the buffer cache.
This means that the contents of the log file are not persisted on disk. An abrupt power failure could result in loss of committed log entries.
Attachments
Attachments
Issue Links
- is depended upon by
-
RATIS-589 Eliminate buffer copying in SegmentedRaftLogOutputStream
- Resolved