jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-4246) Update segment tooling to choose target store
Date Tue, 31 May 2016 14:24:12 GMT

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

Alex Parvulescu commented on OAK-4246:
--------------------------------------

[~frm] I think there something broken here. I just tried using the new {{--segment-tar}} on
a new repo (new format and all) and the {{SegmentTarUtils#openFileStore}} breaks because of
the {{checkFileStoreVersionOrFail}} check. this in turn uses the 'old' FileStore impl to read
some segment metadata which fails as seen in the following:

{noformat}
16:19:02.511 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid index entry offset in
tar file data00001a.tar
16:19:02.515 [main] WARN  o.a.j.o.p.segment.file.TarReader - Could not find a valid tar index
in segmentstore/data00001a.tar, recovering read-only
16:19:02.517 [main] WARN  o.a.j.o.p.segment.file.TarReader - Unexpected entry data00001a.tar.gph
in tar file segmentstore/data00001a.tar, skipping...
16:19:02.517 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid entry checksum at offset
2560 in tar file segmentstore/data00001a.tar, skipping...
16:19:02.517 [main] WARN  o.a.j.o.p.segment.file.TarReader - Unexpected entry  in tar file
segmentstore/data00001a.tar, skipping...
16:19:02.517 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid entry checksum at offset
3072 in tar file segmentstore/data00001a.tar, skipping...
16:19:02.517 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid entry checksum at offset
3072 in tar file segmentstore/data00001a.tar, skipping...
16:19:02.518 [main] WARN  o.a.j.o.p.segment.file.TarReader - Unexpected entry  in tar file
segmentstore/data00001a.tar, skipping...
16:19:02.518 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid entry checksum at offset
3584 in tar file segmentstore/data00001a.tar, skipping...
16:19:02.518 [main] WARN  o.a.j.o.p.segment.file.TarReader - Unexpected entry  in tar file
segmentstore/data00001a.tar, skipping...
16:19:02.529 [main] WARN  o.a.j.o.p.segment.file.TarReader - Invalid index entry size in tar
file data00000a.tar
Exception in thread "main" java.io.IOException: Failed to open tar file segmentstore/data00000a.tar
	at org.apache.jackrabbit.oak.plugins.segment.file.TarReader.openRO(TarReader.java:168)
	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:423)
	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.<init>(FileStore.java:381)
	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ReadOnlyStore.<init>(FileStore.java:1398)
	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ReadOnlyStore.<init>(FileStore.java:1397)
	at org.apache.jackrabbit.oak.plugins.segment.file.FileStore$Builder.buildReadOnly(FileStore.java:376)
	at org.apache.jackrabbit.oak.plugins.segment.FileStoreHelper.openReadOnlyFileStore(FileStoreHelper.java:226)
	at org.apache.jackrabbit.oak.plugins.segment.FileStoreHelper.checkFileStoreVersionOrFail(FileStoreHelper.java:181)
	at org.apache.jackrabbit.oak.run.SegmentTarUtils.openFileStore(SegmentTarUtils.java:647)
	at org.apache.jackrabbit.oak.run.SegmentTarUtils.compact(SegmentTarUtils.java:180)
	at org.apache.jackrabbit.oak.run.CompactCommand.execute(CompactCommand.java:56)
	at org.apache.jackrabbit.oak.run.Mode.execute(Mode.java:63)
	at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
{noformat}

> Update segment tooling to choose target store
> ---------------------------------------------
>
>                 Key: OAK-4246
>                 URL: https://issues.apache.org/jira/browse/OAK-4246
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Francesco Mari
>            Priority: Blocker
>              Labels: tooling
>             Fix For: 1.6
>
>
> We need to add command line options segment specific tooling so users could chose between
{{oak-segment}} and {{oak-segment-next}}. {{oak-segment}} should be the default until deprecated,
where {{oak-segment-next}} should be made the default. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message