You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2019/06/26 10:45:00 UTC

[jira] [Commented] (OAK-7853) SegmentBufferWriter not flushed after OnRC

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

Julian Reschke commented on OAK-7853:
-------------------------------------

trunk: (1.9.10) [r1844549|http://svn.apache.org/r1844549]
1.8: (1.8.9) [r1845241|http://svn.apache.org/r1845241]
1.6: (1.6.15) [r1845242|http://svn.apache.org/r1845242]


> SegmentBufferWriter not flushed after OnRC
> ------------------------------------------
>
>                 Key: OAK-7853
>                 URL: https://issues.apache.org/jira/browse/OAK-7853
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>            Priority: Major
>              Labels: candidate_oak_1_6, candidate_oak_1_8
>             Fix For: 1.10.0, 1.6.15, 1.8.9
>
>
> I suspect there is a rare case where a {{SegmentBufferWriter}} is not flushed from the {{SegmentBufferWriterPool}}. This would happen after OnRC when a previous writer is [disposed|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentBufferWriterPool.java#L194] (vs. being re-used). AFAIU this currently those writers would never be flushed any more and thus lose their transient segment when the store is shut down. This will lead to an inconsistent store ({{SNFE}}).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)