[
https://issues.apache.org/jira/browse/OAK-5971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15940267#comment-15940267
]
Alex Parvulescu commented on OAK-5971:
--------------------------------------
bq .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.
Oh, that's too much overhead for this specific issue (I can't see how the size
of the repo is relevant here). You can augment an existing offline compaction
test and simply focus on checking the journal is not getting corrupted (ie.
start with CompactionAndCleanupIT#offlineCompaction).
> 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)