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] [Assigned] (OAK-5991) FileStoreBuilder should print out a more helpful error message when buildReadOnly fails
Date Mon, 27 Mar 2017 15:33:41 GMT

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

Michael Dürig reassigned OAK-5991:
----------------------------------

    Assignee: Michael Dürig

> 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
>
>         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)

Mime
View raw message