[ https://issues.apache.org/jira/browse/RATIS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze reassigned RATIS-587: ----------------------------------------- Assignee: Tsz Wo Nicholas Sze > FinalizeLogSegment should flush the contents of log > --------------------------------------------------- > > Key: RATIS-587 > URL: https://issues.apache.org/jira/browse/RATIS-587 > Project: Ratis > Issue Type: Bug > Components: LogService > Reporter: Supratim Deka > Assignee: Tsz Wo Nicholas Sze > Priority: Major > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)