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/03/27 15:35:41 UTC

[jira] [Resolved] (OAK-5991) FileStoreBuilder should print out a more helpful error message when buildReadOnly fails

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

Michael Dürig resolved OAK-5991.
--------------------------------
    Resolution: Fixed

Fixed at http://svn.apache.org/viewvc?rev=1788957&view=rev
Thanks [~rombert] for the patch!

> FileStoreBuilder should print out a more helpful error message when buildReadOnly fails
> ---------------------------------------------------------------------------------------
>
>                 Key: OAK-5991
>                 URL: https://issues.apache.org/jira/browse/OAK-5991
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Robert Munteanu
>            Assignee: Michael Dürig
>            Priority: Minor
>             Fix For: 1.7.0, 1.8
>
>         Attachments: 0001-OAK-5991-FileStoreBuilder-should-print-out-a-more-he.patch
>
>
> When running oak-upgrade with an incorrect src argument, the process bails out without an error message:
> {noformat}Exception in thread "main" java.lang.IllegalStateException
> 	at com.google.common.base.Preconditions.checkState(Preconditions.java:134)
> 	at org.apache.jackrabbit.oak.segment.file.FileStoreBuilder.buildReadOnly(FileStoreBuilder.java:353)
> 	at org.apache.jackrabbit.oak.upgrade.cli.node.SegmentTarFactory.hasExternalBlobReferences(SegmentTarFactory.java:103)
> 	at org.apache.jackrabbit.oak.upgrade.cli.node.StoreFactory.hasExternalBlobReferences(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(OakUpgrade.java:48){noformat}
> With more information the error becomes obvious:
> {noformat}Exception in thread "main" java.lang.IllegalStateException: /home/robert/Documents/sources/adobe/cq-quickstart/crx-quickstart/repository/segmentstore/segmentstore does not exist is not a directory
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)