[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397402#comment-13397402
 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-301:
------------------------------------------------

Yes, Falvio. You are right.
In Hadoop, handled like below. 
called FileChannel#force after flush.

{code}
+          ((FileOutputStream)out).getChannel().force(true);
{code}

This is an optional. Who ever wants, they can enable it.
                
> Chance of Data loss on sudden poweroff
> --------------------------------------
>
>                 Key: BOOKKEEPER-301
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-301
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>    Affects Versions: 4.2.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
> Whatever data Bookie flushed into disk may not be gauranteed that they are 
> really pesisted into device. OS will cache the edits. On suddent power off, 
> we may loose that edits.
> This is the JIRA to discuss this problem and address the case.
> Hadoop related issue HDFS-1539.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to