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

Alexander Klimetschek commented on OAK-5272:
--------------------------------------------

IMO the better solution is to leave the equals() method to the 
blobstore/datastore implementation instead of the globally shared 
AbstractBlob.equals().

If two blobs come from the same DS, the DS knows whether they are the same 
based on the content id or not (i.e. could do OAK-5253). If they come from 
different DS, then use the logic as of today. But blobs from different DS, is 
that even happening in reality? I mean from actually different DS, not if one 
is an inline SegmentBlob and the other from a DS. IIUC, in case of a 
CompositeBlobStore all underlying DS must follow the same content hashing logic 
anyway.

> Expose BlobStore API to provide information whether blob id is content hashed
> -----------------------------------------------------------------------------
>
>                 Key: OAK-5272
>                 URL: https://issues.apache.org/jira/browse/OAK-5272
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: blob
>            Reporter: Amit Jain
>            Priority: Major
>
> As per discussion in OAK-5253 it's better to have some information from the 
> BlobStore(s) whether the blob id can be solely relied upon for comparison.



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

Reply via email to