You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2012/05/29 15:38:22 UTC
[jira] [Created] (OAK-117) MicroKernel API: add delete(String
blobId) method
Stefan Guggisberg created OAK-117:
-------------------------------------
Summary: 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
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
[jira] [Commented] (OAK-117) MicroKernel API: add delete(String
blobId) method
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OAK-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284816#comment-13284816 ]
Jukka Zitting commented on OAK-117:
-----------------------------------
I strongly think that this should be handled within the MicroKernel, as a part of the existing garbage collection process. Otherwise we'd need to implement a separate garbage collector on top of the MicroKernel API, which would force MicroKernel clients to worry about or synchronize with each other.
> 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
[jira] [Resolved] (OAK-117) MicroKernel API: add delete(String
blobId) method
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OAK-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg resolved OAK-117.
-----------------------------------
Resolution: Won't Fix
ok, you've convinced me.
i forgot that the binary data is content-addressed.
resolving my half-cocked proposal as "won't fix"
> 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
[jira] [Commented] (OAK-117) MicroKernel API: add delete(String
blobId) method
Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Assigned] (OAK-117) MicroKernel API: add delete(String
blobId) method
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OAK-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg reassigned OAK-117:
-------------------------------------
Assignee: Stefan Guggisberg
> 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