Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 12969 invoked from network); 19 Feb 2009 21:16:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 21:16:25 -0000 Received: (qmail 55502 invoked by uid 500); 19 Feb 2009 21:16:24 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 55472 invoked by uid 500); 19 Feb 2009 21:16:24 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 55461 invoked by uid 99); 19 Feb 2009 21:16:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 13:16:24 -0800 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; Thu, 19 Feb 2009 21:16:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7BDC234C495 for ; Thu, 19 Feb 2009 13:16:01 -0800 (PST) Message-ID: <2020637108.1235078161738.JavaMail.jira@brutus> Date: Thu, 19 Feb 2009 13:16:01 -0800 (PST) From: "Filippo Diotalevi (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-939) Optimize File Install In-Reply-To: <53022927.1234548659565.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/FELIX-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675134#action_12675134 ] Filippo Diotalevi commented on FELIX-939: ----------------------------------------- 1) Installed FELIX-937-938-939.patch.v2. 2) Started felix, autostarting bundle "file:bundles/fileinstall.jar" (opaque URI) 3) fileinstall monitors directory "bundles" 4) fileinstall tries to reinstall the "fileinstall.jar" in the monitored folder 5) Felix raise the "BundleException: Bundle symbolic name and version are not unique" 6) fileinstall keeps on polling, but ignores the fileinstall.jar in subsequent polls It works well, +1 from me. Please commit also FELIX-942_v2.patch . Once committed, I will volunteer to extend the test suite. > Optimize File Install > --------------------- > > Key: FELIX-939 > URL: https://issues.apache.org/jira/browse/FELIX-939 > Project: Felix > Issue Type: Improvement > Environment: generic > Reporter: Sahoo > Attachments: FELIX-937-938-939.patch, FELIX-937-938-939.patch.v2 > > > File Install has a dedicated thread for every directory. That thread wakes up periodically and then does the following: > 1. Iterates over all the bundles by calling context.getBundles > 2. Finds out all bundles which belong to watchedDir. It starts them. > 3. Finds if there is any new jar file in the watchedDir. It installs them. > 4. Finds out if any jar has been deleted from watcheDir. It uninstalls corresponding bundles. > 5. Finds out if any jar has been modified. It updates the corresponding bundles. > I think there is some scope for optimization here. Especially step #2 seems redundant if there has been change in the file system. More over, if out of all the bundles in the system, only a few belong to watchedDir, then the current implementation performs poorly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.