jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Dulceanu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-5971) Offline compaction corrupts the journal
Date Fri, 24 Mar 2017 10:11:41 GMT

     [ https://issues.apache.org/jira/browse/OAK-5971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrei Dulceanu updated OAK-5971:
---------------------------------
    Attachment: OAK-5971-02.patch

I came up with a simple test case in which a blob is added, then removed and offline compaction
is called. The test asserts there's only one valid entry in the journal and that the size
after compaction is less than the size before compaction.

[~alexparvulescu], could you take a look at it, please?

> Offline compaction corrupts the journal
> ---------------------------------------
>
>                 Key: OAK-5971
>                 URL: https://issues.apache.org/jira/browse/OAK-5971
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Alex Parvulescu
>            Assignee: Andrei Dulceanu
>             Fix For: 1.7.0, 1.8
>
>         Attachments: OAK-5971-02.patch, OAK-5971.patch
>
>
> Seems offline compaction corrupts the journal by persisting an illegal value as the head
state.
> Pre Compaction:
> {noformat}
> ~ head segmentstore/journal.log 
> 244b31cd-031d-48f2-ac64-d196ebccb43a:625 root 1490200945396
> accca99a-8829-4e16-a158-c75c08d92252:1580 root 1490200951316
> b188d865-9e26-4263-a9f1-5db3de9e8bfa:1724 root 1490200955354
> {noformat}
> Post Compaction:
> {noformat}
> ~ head segmentstore/journal.log 
> org.apache.jackrabbit.oak.segment.file.JournalEntry@f2680686 root 1490201167938
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message