Xilai Dai created KARAF-6732:
--------------------------------

             Summary: Unexpected bundles refreshed behavior from the Deployer 
of Feature service
                 Key: KARAF-6732
                 URL: https://issues.apache.org/jira/browse/KARAF-6732
             Project: Karaf
          Issue Type: Bug
          Components: karaf
    Affects Versions: 4.2.8, 4.2.4
         Environment: Java 8, Java 11
            Reporter: Xilai Dai


Unexpected bundles refreshed behavior comes from karaf 4.2.x.

For example:

feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.23.1/xml/features
 feature:install camel-cxf

When try to install the "camel-cxf" feature the second time or one more time, 
many of the installed bundled got refreshed
{code:java}
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 | Refreshing bundles:
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.camel.camel-cxf/2.23.1 (Wired to org.apache.cxf.cxf-core/3.2.7 which 
is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.camel.camel-cxf-transport/2.23.1 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-core/3.2.7 (Wired to 
org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-bindings-soap/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-bindings-xml/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-databinding-jaxb/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-features-logging/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-frontend-jaxrs/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-frontend-jaxws/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-frontend-simple/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-management/3.2.7 (Wired to org.apache.cxf.cxf-core/3.2.7 
which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-rs-client/3.2.7 (Wired to org.apache.cxf.cxf-core/3.2.7 
which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-rs-extension-providers/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-rs-extension-search/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-rs-json-basic/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-rs-service-description/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,909 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-transports-http/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7 (Should be wired to: 
org.eclipse.jetty.http/9.4.22.v20191022 (through 
[org.apache.cxf.cxf-rt-transports-http-jetty/3.2.7] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.2.0)(!(version>=10.0.0)))"))
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.cxf-rt-wsdl/3.2.7 (Wired to org.apache.cxf.cxf-core/3.2.7 which 
is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.apache.cxf.karaf.cxf-karaf-commands/3.2.7 (Wired to 
org.apache.cxf.cxf-core/3.2.7 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.client/9.4.22.v20191022 (Should be wired to: 
org.eclipse.jetty.http/9.4.22.v20191022 (through 
[org.eclipse.jetty.client/9.4.22.v20191022] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.deploy/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.jaas/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.jndi/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.plus/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.jndi/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.proxy/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.rewrite/9.4.22.v20191022 (Should be wired to: 
org.eclipse.jetty.http/9.4.22.v20191022 (through 
[org.eclipse.jetty.rewrite/9.4.22.v20191022] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.security/9.4.22.v20191022 (Should be wired to: 
org.eclipse.jetty.http/9.4.22.v20191022 (through 
[org.eclipse.jetty.security/9.4.22.v20191022] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.security.jaspi/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.server/9.4.22.v20191022 (Should be wired to: 
org.eclipse.jetty.http/9.4.22.v20191022 (through 
[org.eclipse.jetty.server/9.4.22.v20191022] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.eclipse.jetty.http)(version>=9.4.22)(!(version>=10.0.0)))"))
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.servlet/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.servlets/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.webapp/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.websocket.client/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.websocket.javax.websocket/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.websocket.javax.websocket.server/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.client/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.eclipse.jetty.websocket.server/9.4.22.v20191022 (Wired to 
org.eclipse.jetty.server/9.4.22.v20191022 which is being refreshed)
2020-05-27T10:50:20,914 | INFO  | features-3-thread-1 | FeaturesServiceImpl     
         | 11 - org.apache.karaf.features.core - 4.2.8 |     
org.ops4j.pax.web.pax-web-jetty/7.2.14 (Wired to 
org.eclipse.jetty.security/9.4.22.v20191022 which is being refreshed) {code}
Looking into the source and debug 
[https://github.com/apache/karaf/blob/master/features/core/src/main/java/org/apache/karaf/features/internal/service/Deployer.java#L1269]
 Even though there is no dependency changes but the Deployer class still 
calculate them and added into the "Should be wired to".

When this behavior happening, many of the installed user business bundles got 
refreshed, this is a disaster for the customer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to