Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 45425 invoked from network); 17 Mar 2008 21:10:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 21:10:14 -0000 Received: (qmail 84155 invoked by uid 500); 17 Mar 2008 21:10:10 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 84107 invoked by uid 500); 17 Mar 2008 21:10:09 -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 84069 invoked by uid 99); 17 Mar 2008 21:10:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 14:10:09 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 21:09:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AF6EA234C0A4 for ; Mon, 17 Mar 2008 14:08:24 -0700 (PDT) Message-ID: <1325153771.1205788104717.JavaMail.jira@brutus> Date: Mon, 17 Mar 2008 14:08:24 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1469) Data store garbage collection: ScanEventListener not working In-Reply-To: <1542177134.1205330326523.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved JCR-1469. -------------------------------- Resolution: Fixed Fix Version/s: core 1.4.2 OK, merged to the 1.4 branch in revision 638066. > Data store garbage collection: ScanEventListener not working > ------------------------------------------------------------ > > Key: JCR-1469 > URL: https://issues.apache.org/jira/browse/JCR-1469 > Project: Jackrabbit > Issue Type: Improvement > Components: jackrabbit-core > Affects Versions: core 1.4.1 > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Fix For: core 1.4.2 > > > The ScanEventListener is currently only called when using the 'scan all nodes recursively' strategy. It is not called when all persistence managers implement IterablePersistenceManager (GarbageCollector.scanPersistenceManagers). The ScanEventListener should be called in every case, otherwise it is not possible to see the progress of the garbage collection. > However there is a problem: IterablePersistenceManager.getAllNodeIds() doesn't return Node objects, and it would make little sense to create real node objects (the performance advantage of scanPersistenceManagers would be lost). > Therefore, I propose a workaround: the ScanEventListener is called using a 'PseudoNode'. This is a class that implements Node but only has meaningful getUUID() and toString() methods. This allows to create a meaningful progress bar (as the UUIDs are returned in order). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.