jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-117) MicroKernel API: add delete(String blobId) method
Date Tue, 29 May 2012 13:59:23 GMT

    [ 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

        

Mime
View raw message