[ 
https://issues.apache.org/jira/browse/RATIS-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated RATIS-822:
-----------------------------
    Attachment: r822_20200303.patch

> 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
>            Priority: Major
>         Attachments: r822_20200303.patch
>
>
> 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)

Reply via email to