Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6840

Tar recovery chokes on bulk segments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.10, 1.8.0
    • segment-tar
    • None

    Description

      Tar recovery currently chokes on bulk segments:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: