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-7082) ArrayIndexOutOfBoundsException when upgrading from Oak 1.6
Date Tue, 19 Dec 2017 16:44:00 GMT

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

Michael Dürig commented on OAK-7082:
------------------------------------

This is caused by {{GCJournal}} only taking care of the {{gc full generation}} field that
was added to the {{gc.log}} in 1.8 but forgets to also take care of {{root id}}, which was
also added with Oak 1.8. 

> ArrayIndexOutOfBoundsException when upgrading from Oak 1.6
> ----------------------------------------------------------
>
>                 Key: OAK-7082
>                 URL: https://issues.apache.org/jira/browse/OAK-7082
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>            Priority: Critical
>              Labels: migration
>             Fix For: 1.8
>
>
> When starting on an Oak 1.6 repository and the {{gc.log}} file is present the TarMK fails
with:
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 5
>         at org.apache.jackrabbit.oak.segment.file.GCJournal$GCJournalEntry.parseString(GCJournal.java:217)
>         at org.apache.jackrabbit.oak.segment.file.GCJournal$GCJournalEntry.fromString(GCJournal.java:204)
>         at org.apache.jackrabbit.oak.segment.file.GCJournal.read(GCJournal.java:115)
>         at org.apache.jackrabbit.oak.segment.file.FileStore$GarbageCollector.compact(FileStore.java:750)
>         at org.apache.jackrabbit.oak.segment.file.FileStore$GarbageCollector.compactFull(FileStore.java:731)
>         at org.apache.jackrabbit.oak.segment.file.FileStore.compactFull(FileStore.java:385)
>         at org.apache.jackrabbit.oak.segment.tool.Compact.run(Compact.java:273)
>         at org.apache.jackrabbit.oak.run.CompactCommand.execute(CompactCommand.java:72)
>         at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message