[ 
https://issues.apache.org/jira/browse/OAK-6058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16343320#comment-16343320
 ] 

Francesco Mari commented on OAK-6058:
-------------------------------------

[~tomek.rekawek], if I understood {{OakUpgrade}} correctly, and 
{{NodeStateCopier}} in particular, the code already does what this issue 
proposes. During a sidegrade between oak-segment and oak-segment-tar, two 
instances of {{SegmentBlob}} are compared, respectively 
{{o.a.j.o.plugins.segment.SegmentBlob}} and {{o.a.j.o.segment.SegmentBlob}}. 
Being their classes different, they are passed to 
{{o.a.j.o.plugins.memory.AbstractBlob#equal}}, which compares their length and 
content identities. In both cases the content identities are the BLOB IDs that 
are serialized on disk. As long as the binaries are the same, their content 
identites are the same too, and their content doesn't need to be inspected.

Am I missing something from oak-upgrade that might influence the computation of 
the content identities of the BLOBs?

> Avoid accessing remote binaries when migration involves S3
> ----------------------------------------------------------
>
>                 Key: OAK-6058
>                 URL: https://issues.apache.org/jira/browse/OAK-6058
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: upgrade
>            Reporter: Tomek Rękawek
>            Assignee: Francesco Mari
>            Priority: Major
>             Fix For: 1.10
>
>
> When migrating (sidegrade) a repository referencing the S3DataStore, we 
> should avoid accessing the binaries themselves and use their identifiers 
> instead.
> In particular:
> * it should be possible to copy a a nodestore referencing S3DataStore without 
> accessing/configuring S3 at all (copy binaries by the references),
> * if the S3DataStore is configured for the migration and the destination 
> already exists, the blob identifiers should be used in the equals() method, 
> not the whole binary input stream.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to