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

Marcel Reutegger commented on OAK-9170:
---------------------------------------

[~reschke], maybe I misunderstood your comment. The change I proposed won't 
move when bufferCopy.write(channel) fails. The preceding try block simply makes 
sure the channel is closed. There would be no move when the write operation 
fails with an exception.

> Make loading segment disk cache fail safe in case when write operation is 
> interrupted by failure
> ------------------------------------------------------------------------------------------------
>
>                 Key: OAK-9170
>                 URL: https://issues.apache.org/jira/browse/OAK-9170
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Miroslav Smiljanic
>            Assignee: Andrei Dulceanu
>            Priority: Major
>             Fix For: 1.36.0
>
>         Attachments: OAK-9170.patch
>
>
> Failure while writing the segment to disk cache, can leave content of the 
> segment partially persisted. That will cause the problems when that same file 
> is later loaded. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to