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 "Robert Munteanu (JIRA)" <ji...@apache.org> on 2017/03/27 15:23:41 UTC
[jira] [Created] (OAK-5991) FileStoreBuilder should print out more
helpful error message when buildReadOnly fails
Robert Munteanu created OAK-5991:
------------------------------------
Summary: FileStoreBuilder should print out 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: upgrade
Reporter: Robert Munteanu
Priority: Minor
Fix For: 1.7.0
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)