[ 
https://issues.apache.org/jira/browse/FELIX-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753050#action_12753050
 ] 

Guillaume Nodet commented on FELIX-1572:
----------------------------------------

I think I've reproduced the problem, but it's not a loop that really consumes 
much cpu.
What happens is that fileinstall is watching the /foo/bar directory, sees a 
configuration file and give it to the config admin.  The config admin then tell 
fileinstall that its configuration has changed, and fileinstall update the 
DirectoryWatcher accordingly.
This means that at each poll interval, the directory watcher will be recreated.

Not sure what we can do for that.

> File Install running in an infinite loop while watching multiple directories, 
> once of which is itself
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1572
>                 URL: https://issues.apache.org/jira/browse/FELIX-1572
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions:  fileinstall-1.0.0, fileinstall-1.2.0, fileinstall-2.0.0
>         Environment: generic
>            Reporter: Ajay Kumar
>
> Felix File install runs in an infinite loop, if you put a configuration file 
> to watch itself
> Steps to reproduce
> 1. Configure file install to watch /foo/bar directory
> 2. Put a new configuration file e.g org.apache.felix.fileinstall-<pid>.cfg in 
> /foo/bar directory in order to watch multiple directories. If the value of 
> felix.fileinstall.dir inside the configuration file  is anything but 
> /foo/bar, it works great. 
> However if you modify the value of felix.fileinstall.dir  to /foo/bar 
> (meaning the same directory which file install is watching), it runs in an 
> infinite loop

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to