You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Ajay Kumar <aj...@gmail.com> on 2009/09/08 17:31:30 UTC

Felix File Install running in an Infinite loop

I could configure File Install to watch multiple directories. Lets say, my
file install is watching */foo/bar* directory. If I put a new configuration
file (*org.apache.felix.fileinstall-<pid>.cfg*) and tell it to watch *
/foo/baz* directory, It works great.

However, if I tell the new configuration file to watch */foo/bar* directory
(meaning the same directory which file install is watching), it runs in an
infinite loop.

Please let me know, if I should open a JIRA for the same. Currently,
looking at the source code to see what needs to be changed.

Regards,
Ajay Kumar

Re: Felix File Install running in an Infinite loop

Posted by Guillaume Nodet <gn...@gmail.com>.
Not sure, but the problem might be that the first poller will see the
configuration, create another poller on the same dir and start it.
This new poller will do the same, and again, and again...

On Wed, Sep 9, 2009 at 09:38, Guido Spadotto<gs...@soluta.net> wrote:
> Ajay Kumar wrote:
>>
>> Created https://issues.apache.org/jira/browse/FELIX-1572
>>
>
> Hi Ajay,
> file-install actually goes into a loop (by spawning a thread that
> periodically checks the polled folder(s)
> every x seconds, where x is configurable).
>
> Normally you should not even realize it, as there's no output if everything
> goes fine.
>
> The question is then: "What's the looping output you see? Do you see
> stack-traces and/or error messages?"
>
> Cheers,
> --
> Guido Spadotto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Felix File Install running in an Infinite loop

Posted by Guido Spadotto <gs...@soluta.net>.
Ajay Kumar wrote:
> Created https://issues.apache.org/jira/browse/FELIX-1572
>   
Hi Ajay,
 file-install actually goes into a loop (by spawning a thread that 
periodically checks the polled folder(s)
every x seconds, where x is configurable).

Normally you should not even realize it, as there's no output if 
everything goes fine.

The question is then: "What's the looping output you see? Do you see 
stack-traces and/or error messages?"

Cheers,
-- 
Guido Spadotto

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Felix File Install running in an Infinite loop

Posted by Ajay Kumar <aj...@gmail.com>.
Created https://issues.apache.org/jira/browse/FELIX-1572

On Tue, Sep 8, 2009 at 3:46 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> Could you then raise a JIRA issue and describe the needed steps to
> reproduce the problem please ?
>
> On Tue, Sep 8, 2009 at 22:42, Ajay Kumar<aj...@gmail.com> wrote:
> > I built the snapshot (org.apache.felix.fileinstall-2.0.1-SNAPSHOT.jar )
> with
> > the latest trunk and could reproduce the infinite loop behaviour.
> >
> > On Tue, Sep 8, 2009 at 10:36 AM, Guillaume Nodet <gn...@gmail.com>
> wrote:
> >
> >> Fileinstall has undergone some major changes in the past weeks, so you
> may
> >> try to build a snapshot and see if you can reproduce the problem with
> the
> >> latest trunk.   FWIW, fileinstall is in the process of being released
> right
> >> now.
> >>
> >> On Tue, Sep 8, 2009 at 17:31, Ajay Kumar <aj...@gmail.com> wrote:
> >>
> >> > I could configure File Install to watch multiple directories. Lets
> say,
> >> my
> >> > file install is watching */foo/bar* directory. If I put a new
> >> configuration
> >> > file (*org.apache.felix.fileinstall-<pid>.cfg*) and tell it to watch *
> >> > /foo/baz* directory, It works great.
> >> >
> >> > However, if I tell the new configuration file to watch */foo/bar*
> >> directory
> >> > (meaning the same directory which file install is watching), it runs
> in
> >> an
> >> > infinite loop.
> >> >
> >> > Please let me know, if I should open a JIRA for the same. Currently,
> >> > looking at the source code to see what needs to be changed.
> >> >
> >> > Regards,
> >> > Ajay Kumar
> >> >
> >>
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >> ------------------------
> >> Blog: http://gnodet.blogspot.com/
> >> ------------------------
> >> Open Source SOA
> >> http://fusesource.com
> >>
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Felix File Install running in an Infinite loop

Posted by Guillaume Nodet <gn...@gmail.com>.
Could you then raise a JIRA issue and describe the needed steps to
reproduce the problem please ?

On Tue, Sep 8, 2009 at 22:42, Ajay Kumar<aj...@gmail.com> wrote:
> I built the snapshot (org.apache.felix.fileinstall-2.0.1-SNAPSHOT.jar ) with
> the latest trunk and could reproduce the infinite loop behaviour.
>
> On Tue, Sep 8, 2009 at 10:36 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>
>> Fileinstall has undergone some major changes in the past weeks, so you may
>> try to build a snapshot and see if you can reproduce the problem with the
>> latest trunk.   FWIW, fileinstall is in the process of being released right
>> now.
>>
>> On Tue, Sep 8, 2009 at 17:31, Ajay Kumar <aj...@gmail.com> wrote:
>>
>> > I could configure File Install to watch multiple directories. Lets say,
>> my
>> > file install is watching */foo/bar* directory. If I put a new
>> configuration
>> > file (*org.apache.felix.fileinstall-<pid>.cfg*) and tell it to watch *
>> > /foo/baz* directory, It works great.
>> >
>> > However, if I tell the new configuration file to watch */foo/bar*
>> directory
>> > (meaning the same directory which file install is watching), it runs in
>> an
>> > infinite loop.
>> >
>> > Please let me know, if I should open a JIRA for the same. Currently,
>> > looking at the source code to see what needs to be changed.
>> >
>> > Regards,
>> > Ajay Kumar
>> >
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Felix File Install running in an Infinite loop

Posted by Ajay Kumar <aj...@gmail.com>.
I built the snapshot (org.apache.felix.fileinstall-2.0.1-SNAPSHOT.jar ) with
the latest trunk and could reproduce the infinite loop behaviour.

On Tue, Sep 8, 2009 at 10:36 AM, Guillaume Nodet <gn...@gmail.com> wrote:

> Fileinstall has undergone some major changes in the past weeks, so you may
> try to build a snapshot and see if you can reproduce the problem with the
> latest trunk.   FWIW, fileinstall is in the process of being released right
> now.
>
> On Tue, Sep 8, 2009 at 17:31, Ajay Kumar <aj...@gmail.com> wrote:
>
> > I could configure File Install to watch multiple directories. Lets say,
> my
> > file install is watching */foo/bar* directory. If I put a new
> configuration
> > file (*org.apache.felix.fileinstall-<pid>.cfg*) and tell it to watch *
> > /foo/baz* directory, It works great.
> >
> > However, if I tell the new configuration file to watch */foo/bar*
> directory
> > (meaning the same directory which file install is watching), it runs in
> an
> > infinite loop.
> >
> > Please let me know, if I should open a JIRA for the same. Currently,
> > looking at the source code to see what needs to be changed.
> >
> > Regards,
> > Ajay Kumar
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: Felix File Install running in an Infinite loop

Posted by Guillaume Nodet <gn...@gmail.com>.
Fileinstall has undergone some major changes in the past weeks, so you may
try to build a snapshot and see if you can reproduce the problem with the
latest trunk.   FWIW, fileinstall is in the process of being released right
now.

On Tue, Sep 8, 2009 at 17:31, Ajay Kumar <aj...@gmail.com> wrote:

> I could configure File Install to watch multiple directories. Lets say, my
> file install is watching */foo/bar* directory. If I put a new configuration
> file (*org.apache.felix.fileinstall-<pid>.cfg*) and tell it to watch *
> /foo/baz* directory, It works great.
>
> However, if I tell the new configuration file to watch */foo/bar* directory
> (meaning the same directory which file install is watching), it runs in an
> infinite loop.
>
> Please let me know, if I should open a JIRA for the same. Currently,
> looking at the source code to see what needs to be changed.
>
> Regards,
> Ajay Kumar
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com