Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 842369219 for ; Wed, 30 May 2012 09:50:24 +0000 (UTC) Received: (qmail 64115 invoked by uid 500); 30 May 2012 09:50:24 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 64087 invoked by uid 500); 30 May 2012 09:50:24 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 64062 invoked by uid 99); 30 May 2012 09:50:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 09:50:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 449361402B8 for ; Wed, 30 May 2012 09:50:23 +0000 (UTC) Date: Wed, 30 May 2012 09:50:22 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <99672269.15450.1338371423283.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (OAK-120) MicroKernel API: specific retention policy of binaries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Mueller created OAK-120: ---------------------------------- Summary: MicroKernel API: specific retention policy of binaries Key: OAK-120 URL: https://issues.apache.org/jira/browse/OAK-120 Project: Jackrabbit Oak Issue Type: Improvement Components: mk Reporter: Thomas Mueller A MicroKernel implementation needs to remove unused binaries. As the API doesn't have a way to manually remove binaries (see also OAK-117), we need to specify a retention policy (the rules for which binaries can be removed and which ones need to be retained). The idea is that a MicroKernel implementation uses a garbage collection algorithm to remove unused binaries from time to time. There are two classes of binaries that need to be retained: (A) binaries referenced within the nodes (as property values) (B) temporary binaries (not [yet] referenced) For (B) we could use the same retention policy as for revisions (keep temporary binaries as long as old revisions are kept). For (A) we need to specify the property value format, so the MicroKernel can retain binaries based on the content. One idea is that binary values should be kept if there is a node with property value ":blobId:", or a node with an array property value [..., ":blobId:",...]. I will create a patch. -- 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