Ok, I'll create an issue. While I've got the attention, what is the replacement for SegmentStore.close() in 1.6? I am unable to restart webapps since the segment tar store seems to be still in use.
On 6 February 2017 at 21:03, Michael Dürig <[email protected]> wrote: > > Hi, > > Ouch, I see. To work around this it should be possible to temporarily > rename the directory on your end. > > Could you also create an issue on the Oak issue tracker [1] for this? I > guess the current behaviour is too much driven by our internal use case. > > Michael > > [1] https://issues.apache.org/jira/browse/OAK > > > On 6.2.17 10:10 , Torgeir Veimo wrote: > >> I just added some log statements. It seems that the upgrade process >> appends >> /segmentstore to the path I specify, while the oak directory only contains >> tar files, no subdirectories. >> >> log.info("builder path: {}", builder.directory.getPath()); >> 06.02.2017 19:07:59.699 [main] *INFO* >> org.apache.jackrabbit.oak.plugins.segment.file.FileStore - builder path: >> /Users/tor/content/karriere/oak/segmentstore >> >> On 6 February 2017 at 18:54, Michael Dürig <[email protected]> wrote: >> >> >>> >>> On 6.2.17 9:47 , Torgeir Veimo wrote: >>> >>> That is very odd. The /Users/tor/content/karriere/oak path definitely >>>> contains an old segment repository. I'm currently accessing it using the >>>> deprecated org.apache.jackrabbit.oak.plugins.segment code in 1.6.0 >>>> until >>>> I >>>> can get it migrated; >>>> >>>> segmentStore = FileStore.builder(new File(oakRepositoryPath)) >>>> .withMaxFileSize(256).build(); >>>> nodeStore = SegmentNodeStore.builder(segmentStore) >>>> .build(); >>>> >>>> >>> In that case there might be something wrong with the migration. Tomek >>> Rekawek might be able to help on that side. >>> >>> Michael >>> >>> >>> >>> On 6 February 2017 at 18:30, Michael Dürig <[email protected]> wrote: >>>> >>>> >>>> Hi, >>>>> >>>>> This is the exception you get when trying to open an newer storage >>>>> format >>>>> with an older version of the code (newer versions of the code will be >>>>> more >>>>> helpful in the wording of the error). >>>>> >>>>> Apparently >>>>> >>>>> segment-old:/Users/tor/content/karriere/oak ~/content/karriere/oak-16 >>>>> >>>>>> >>>>>> >>>>> points to a migrate store already. Migrated to Oak Segment Tar, that >>>>> is. >>>>> >>>>> Michael >>>>> >>>>> >>>>> On 2.2.17 3:50 , Torgeir Veimo wrote: >>>>> >>>>> Am running oak-upgrade with the follow parameters and output. How do I >>>>> >>>>>> determine what is the exact problem? >>>>>> >>>>>> >>>>>> Torgeirs-MacBook-Pro:jackrabbit-oak-1.5.18 tor$ java -jar >>>>>> ./oak-upgrade/target/oak-upgrade-1.5.18.jar --copy-binaries >>>>>> segment-old:/Users/tor/content/karriere/oak ~/content/karriere/oak-16 >>>>>> >>>>>> 03.02.2017 00:39:21.037 [main] *INFO* >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions - >>>>>> copyVersions parameter set to 1970-01-01 >>>>>> >>>>>> 03.02.2017 00:39:21.040 [main] *INFO* >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions - >>>>>> copyOrphanedVersions parameter set to 1970-01-01 >>>>>> >>>>>> 03.02.2017 00:39:21.040 [main] *INFO* >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.MigrationOptions - >>>>>> Cache >>>>>> size: 256 MB >>>>>> >>>>>> 03.02.2017 00:39:21.042 [main] *INFO* >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments - >>>>>> Source: >>>>>> SEGMENT[segment-old:/Users/tor/content/karriere/oak] >>>>>> >>>>>> 03.02.2017 00:39:21.044 [main] *INFO* >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments - >>>>>> Destination: >>>>>> SEGMENT_TAR[/Users/tor/content/karriere/oak-16] >>>>>> >>>>>> Exception in thread "main" java.lang.IllegalStateException >>>>>> >>>>>> at com.google.common.base.Preconditions.checkState(Precondition >>>>>> s.java:134) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.plugins.segment.file.FileStore.< >>>>>> init>(FileStore.java:403) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.plugins.segment.file.FileStore.< >>>>>> init>(FileStore.java:92) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ >>>>>> ReadOnlyStore.<init>(FileStore.java:1449) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ >>>>>> ReadOnlyStore.<init>(FileStore.java:1446) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.plugins.segment.file.FileStore$ >>>>>> Builder.buildReadOnly(FileStore.java:393) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.upgrade.cli.node.SegmentFactory.ha >>>>>> sExternalBlobReferences(SegmentFactory.java:119) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.upgrade.cli.node.StoreFactory.hasE >>>>>> xternalBlobReferences(StoreFactory.java:67) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments. >>>>>> srcUsesEmbeddedDatastore(StoreArguments.java:113) >>>>>> >>>>>> at >>>>>> org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.migrate( >>>>>> OakUpgrade.java:64) >>>>>> >>>>>> at org.apache.jackrabbit.oak.upgrade.cli.OakUpgrade.main(OakUpg >>>>>> rade.java:48) >>>>>> >>>>>> >>>>>> -- >>>>>> -Tor >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >> >> -- -Tor
