[
https://issues.apache.org/jira/browse/OAK-4447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322489#comment-15322489
]
Alex Parvulescu commented on OAK-4447:
--------------------------------------
bq. The src- prefix is used to specify the source blob store. In this case we
are using the empty blob store both as a source and as a destination, so maybe
--missingblobstore would be a better choice?
sure, sounds good. on my local I saw that I don't actually need a
{{destination}} datastore, as the sidegrade would persist the references
without needing to load anything.
bq. It won't work for all possible combinations of node stores. For example,
when migrating Segment -> Mongo, the process tries to create a blob and fails,
interesting. granted we are expanding the scope of this issue (I was only
looking at oak-segment -> oak-segment-tar), I'd be curios to understand why
this fails (a stacktrace would be nice). it may have something to do with the
blobid representation (migrating references)?
bq. It won't work for the FileBlobStore, as it tries to save the blob length in
its ID and we don't have access to this information. FileBlobStore is not very
popular anyway, so it's not a show-breaker.
I thought that was already the case (even tweaked the {{getBlobLength}} method
to account for this encoding). but maybe I'm misreading the comment.
bq. I extended the patch with a test containing a list of working cases. Maybe
we should reject the option if an unsupported combination of node stores is
used?
agreed. if this is supposed to work with mongo setups the
{{BasicReadOnlyBlobStore}} needs to be copied over to the upgrade project and
updated accordingly. in the current incantation it makes a few assumptions
about the blobids that might not hold up for mongo setups.
> RepositorySidegrade: oak-segment to oak-segment-tar migrate without external
> datastore
> --------------------------------------------------------------------------------------
>
> Key: OAK-4447
> URL: https://issues.apache.org/jira/browse/OAK-4447
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar, upgrade
> Reporter: Alex Parvulescu
> Attachments: OAK-4447-with-test.patch, upgrade-nods.patch
>
>
> I'd like to submit a patch for being able to run the sidegrade from
> oak-segment to oak-segment-tar without the need to have the external
> datastore connected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)