From dev-return-14882-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Oct 31 10:42:53 2007 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 63119 invoked from network); 31 Oct 2007 10:42:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 10:42:53 -0000 Received: (qmail 17402 invoked by uid 500); 31 Oct 2007 10:42:37 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 17374 invoked by uid 500); 31 Oct 2007 10:42:37 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 17364 invoked by uid 99); 31 Oct 2007 10:42:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 03:42:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.tom.mueller@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 10:42:41 +0000 Received: by wa-out-1112.google.com with SMTP id m34so128404wag for ; Wed, 31 Oct 2007 03:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=6VRGbkQGc3F3M8sUO1ycPzphkmMRX54Ey3SX/BNF8fs=; b=C0LcFSuhXizwx1mXzjAbJ2f0FOhwgPo3LZYoeiN2KqACsnAgOAS5VxFcmqIHQYJO2BB0Ow61E6A+1SZgMPngM3JX5QHgBqc71tijfxDcQtiAQQDHBZDqhaMGklbvFyj6AhZHn88wSroIlVs4p8TzkksSWRKTAmhecwrXOq32f+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KupHn3tENztt2z5qoZvhF9ul/W6KkTi8rVsbRJFR7Q3UQC+4+9LSxORKuVBRgZvrxvolxouvHwCiIzbtboAl+UfGVrkHLiChUnxvN76IDcIs+LTDQveKTKb9KIWsgRbBOj7TdGCgJV5zvhZAivLSJbPx2Gz3THUA3wcxKOjvK2c= Received: by 10.114.201.1 with SMTP id y1mr794015waf.1193827339598; Wed, 31 Oct 2007 03:42:19 -0700 (PDT) Received: by 10.114.103.7 with HTTP; Wed, 31 Oct 2007 03:42:19 -0700 (PDT) Message-ID: <5f211bd50710310342q20cf0c9g54da392acab19ba8@mail.gmail.com> Date: Wed, 31 Oct 2007 11:42:19 +0100 From: "Thomas Mueller" To: dev@jackrabbit.apache.org Subject: Re: Realtime datastore garbage collector In-Reply-To: <90a8d1c00710310157w7ad62045jf0bc84bf1a3662c3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <04b201c810fd$06c4f300$7309240a@goku> <5f211bd50710190706y3444aaf2l6a302f2001e4be6b@mail.gmail.com> <040b01c81b33$0270ad40$7309240a@goku> <90a8d1c00710310157w7ad62045jf0bc84bf1a3662c3@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Esteban, My 'chain' is incomplete: o.a.j.core.state.PropertyState (properties), o.a.j.core.cluster.PropertyOperation (cluster operations), o.a.j.core.nodetype.PropDefImpl (for default values) -> InternalValue -> BLOBInDataStore -> DataIdentifier The main reference is PropertyState, which is referenced by PropertyImpl. PropertyState is kept in the transient space and / or cache for a certain amout of time. I think it is not that easy to find out when all hard, weak and soft references are removed, because this depends on the virtual machine. That's why I have written the test using the clearInUse method. To write a more realistic test case (that works in the same way in all virtual machines) would be quite complex I think. Do you think this is required? Thanks, Thomas