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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2017/12/19 16:44:00 UTC

[jira] [Commented] (OAK-7082) ArrayIndexOutOfBoundsException when upgrading from Oak 1.6

    [ 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)