[
https://issues.apache.org/jira/browse/RATIS-822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051125#comment-17051125
]
Lokesh Jain commented on RATIS-822:
-----------------------------------
[~szetszwo] Thanks for working on this! The changes look good to me. +1.
> 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)