You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Supratim Deka (JIRA)" <ji...@apache.org> on 2019/06/11 09:12:00 UTC
[jira] [Created] (RATIS-587) FinalizeLogSegment should flush the
contents of log
Supratim Deka created RATIS-587:
-----------------------------------
Summary: 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
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)