You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2020/03/04 02:06:00 UTC
[jira] [Created] (RATIS-822) BufferedWriteChannel may not flush
correctly
Tsz-wo Sze created RATIS-822:
--------------------------------
Summary: BufferedWriteChannel may not flush correctly
Key: RATIS-822
URL: https://issues.apache.org/jira/browse/RATIS-822
Project: Ratis
Issue Type: Bug
Components: server
Reporter: Tsz-wo Sze
Assignee: Tsz-wo Sze
Suppose the buffer in BufferedWriteChannel has capacity n and is initially empty. Calling write(..) with n-byte data will trigger flushInternal(). Then, the buffer becomes empty again. If flush() is called, it won't trigger FileChannel.force(..) since the buffer is empty.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)