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] [Resolved] (OAK-6840) Tar recovery chokes on bulk segments
Date Tue, 17 Oct 2017 15:27:00 GMT

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

Michael Dürig resolved OAK-6840.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8

Test case and fix at http://svn.apache.org/viewvc?rev=1812417&view=rev

> Tar recovery chokes on bulk segments 
> -------------------------------------
>
>                 Key: OAK-6840
>                 URL: https://issues.apache.org/jira/browse/OAK-6840
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 1.8, 1.7.10
>
>
> Tar recovery currently chokes on bulk segments: 
> {noformat}
> 16:15:35.155 [main] WARN  o.a.j.oak.segment.file.tar.TarReader - Unable to load index
of file data00000a.tar: Unrecognized magic number
> 16:15:35.162 [main] WARN  o.a.j.oak.segment.file.tar.TarReader - Could not find a valid
tar index in /Users/mduerig/Downloads/l9/crx-quickstart/repository/segmentstore/data00000a.tar,
recovering read-only
> java.lang.IllegalArgumentException: invalid segment buffer
>     at org.apache.jackrabbit.oak.segment.data.SegmentDataLoader.newSegmentData(SegmentDataLoader.java:37)
>     at org.apache.jackrabbit.oak.segment.data.SegmentData.newSegmentData(SegmentData.java:66)
>     at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.writeSegment(AbstractFileStore.java:212)
>     at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.access$000(AbstractFileStore.java:66)
>     at org.apache.jackrabbit.oak.segment.file.AbstractFileStore$1.recoverEntry(AbstractFileStore.java:125)
>     at org.apache.jackrabbit.oak.segment.file.tar.TarReader.generateTarFile(TarReader.java:213)
>     at org.apache.jackrabbit.oak.segment.file.tar.TarReader.openRO(TarReader.java:162)
>     at org.apache.jackrabbit.oak.segment.file.tar.TarFiles.<init>(TarFiles.java:298)
>     at org.apache.jackrabbit.oak.segment.file.tar.TarFiles.<init>(TarFiles.java:58)
>     at org.apache.jackrabbit.oak.segment.file.tar.TarFiles$Builder.build(TarFiles.java:167)
>     at org.apache.jackrabbit.oak.segment.file.ReadOnlyFileStore.<init>(ReadOnlyFileStore.java:74)
>     at org.apache.jackrabbit.oak.segment.file.FileStoreBuilder.buildReadOnly(FileStoreBuilder.java:383)
> {noformat}



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

Mime
View raw message