felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filippo Diotalevi <filippo.diotal...@gmail.com>
Subject Re: [jira] Commented: (FELIX-1036) FileInstaller spawns multiple watchers for same directory
Date Thu, 16 Apr 2009 14:35:56 GMT
On Thu, Apr 16, 2009 at 4:12 PM, Sahoo (JIRA) <jira@apache.org> wrote:
> Filippo,
>
> I tried the patch. It works as I see only one watcher per every watched directory, but
for some reason, I see configuration values getting printed twice for the second directory
as shown below:
>
> felix.fileinstall.poll  (ms)   5000
> felix.fileinstall.dir            /space/ss141213/WS/gf/v3.trunk.new/publish/glassfish/modules
> felix.fileinstall.debug          1
> felix.fileinstall.bundles.new.start          false
> felix.fileinstall.poll  (ms)   5000
> felix.fileinstall.dir            /space/ss141213/WS/gf/v3.trunk.new/publish/glassfish/domains/domain1/autodeploy-modules
> felix.fileinstall.debug          1
> felix.fileinstall.bundles.new.start          true
> Updating configuration from org.apache.felix.fileinstall-autodeploy-modules.cfg
> felix.fileinstall.poll  (ms)   5000
> felix.fileinstall.dir            /space/ss141213/WS/gf/v3.trunk.new/publish/glassfish/domains/domain1/autodeploy-modules
> felix.fileinstall.debug          1
> felix.fileinstall.bundles.new.start          true
>

I think that it is correct.

The first log is a fileinstall created with config.properties, I guess.

The second log is caused by cached configuration dictionary.

The third log is caused by fileinstall finding a configuration file.
It correctly determines that it's a configuration already existent (in
fact you see the new log "Updating configuration"; so it retrieves the
old configuration and .update() it.


-- 
Filippo Diotalevi

Mime
View raw message