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

Thomas Mueller commented on OAK-117:
------------------------------------

Sounds good! But I wonder if it would prevent us to implement garbage 
collection efficiently. I'm not sure. For Jackrabbit 2.x, a typical garbage 
collection cycle is: start marking, mark used binaries, sweep. The data store 
implementation takes case about deleting entries. If we just add a delete 
method (which is elegant I have to admit) how could the data store 
implementation take care of marking used binaries? If it doesn't / shouldn't, 
we would have to implement marking on top of the MicroKernel interface, which 
might not be efficient.

So an alternative to delete(String blobId) would be:

- markStart()
- mark(String blobId)
- sweep()
                
> MicroKernel API: add delete(String blobId) method
> -------------------------------------------------
>
>                 Key: OAK-117
>                 URL: https://issues.apache.org/jira/browse/OAK-117
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Stefan Guggisberg
>            Assignee: Stefan Guggisberg
>
> the MicroKernel API does provide methods for writing and reading binary data;
> but there's no method to delete binary data.
> i suggest we add the following method:
> boolean delete(String blobId) throws MicroKernelException;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to