jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-7853) SegmentBufferWriter not flushed after OnRC
Date Fri, 19 Oct 2018 15:19:00 GMT

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

Michael Dürig commented on OAK-7853:

Test case and proposed fix: [https://github.com/mduerig/jackrabbit-oak/commit/2b2c3bddfa97899ecae30b2fcdab323b73420d8e]

[~frm] could you have a look please?

> 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
>             Fix For: 1.10
> 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

View raw message