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

metatech commented on FELIX-4436:
---------------------------------

I tested using Guillaume's commit version.
Indeed the Blueprint XML are not detected anymore as "installed" on every 
start-up.
However, I see now that the "activemq-broker.xml" gets restarted during 
start-up, which generates many errors in depending bundles.
I also see that the "cfg" files in the "etc" directory are still detected as 
"installed" on every start-up, although this does not seem to cause any harm.

Below is the stack trace when the "activemq-broker.xml" is stopped during 
start-up, if it can help.
{code}
"fileinstall-C:\smx\servicemix/etc" daemon prio=6 tid=0x000000000a18e000 
nid=0x1210 at breakpoint[0x000000000bfbf000]
   java.lang.Thread.State: RUNNABLE
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2217)
        at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:963)
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.stopTransient(DirectoryWatcher.java:1214)
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1156)
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:935)
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:498)
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:308)
{code}



> DirectoryWatcher should not refresh transformed bundles on every start-up
> -------------------------------------------------------------------------
>
>                 Key: FELIX-4436
>                 URL: https://issues.apache.org/jira/browse/FELIX-4436
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.2.4
>         Environment: ServiceMix 4.5.3
>            Reporter: metatech
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: fileinstall-3.4.0
>
>         Attachments: felix_no_refresh_installed.patch
>
>
> DirectoryWatcher can auto-deploy JAR or XML files placed in a directory.
> Blueprint XML files (containing for instance ActiveMQ factories or JAAS 
> realms) are detected as "installed" on every start-up.  Prior to FELIX-2066, 
> this had no effect.  Since FELIX-2066, bundles detected as "installed" are 
> now forcibly "refreshed" on every start-up.  The impact is that these bundles 
> are stopped and restarted during the container start-up.  Because there are 
> some race conditions (see FELIX-3067), this can prevent those XML files or 
> other bundles depending on them from fully starting.  Here is a patch which 
> avoids restarting those bundles when they were not modified.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to