Hey folks,

I've encountered some odd behavior with Karaf 4.4.3, and I'd like to confirm if 
this is a bug or if there are some settings I can tune to alter the behavior.

Here's how to reproduce:

  *   Start Karaf 4.4.3 w/ JDK 11
  *   Install the managed factory example
     *
feature:repo-add 
mvn:org.apache.karaf.examples/karaf-config-example-features/4.4.3/xml
     *
feature:install karaf-config-example-managed-factory
  *   Copy the attached 'config.xml' file to the 'deploy/' directory
  *   Wait about 5 seconds, and notice the following output to the console

New configuration with pid 
org.apache.karaf.example.config.04388423-2d46-4308-8214-3dcd1e0b8fd0
key1 = value1
key2 = value2
org.apache.karaf.features.configKey = org.apache.karaf.example.config-abc
service.factoryPid = org.apache.karaf.example.config
service.pid = 
org.apache.karaf.example.config.04388423-2d46-4308-8214-3dcd1e0b8fd0
18:42:02.131 INFO [features-3-thread-1] Done.
18:42:10.999 INFO [fileinstall-/Users/jesse/labs/karaf/apache-karaf-4.4.3/etc] 
Creating configuration {org.apache.karaf.example.config~abc} from 
/Users/jesse/labs/karaf/apache-karaf-4.4.3/etc/org.apache.karaf.example.config-abc.cfg
New configuration with pid org.apache.karaf.example.config~abc
felix.fileinstall.filename = 
file:/Users/jesse/labs/karaf/apache-karaf-4.4.3/etc/org.apache.karaf.example.config-abc.cfg
key1 = value1
key2 = value2
org.apache.karaf.features.configKey = org.apache.karaf.example.config-abc
service.factoryPid = org.apache.karaf.example.config
service.pid = org.apache.karaf.example.config~abc


Note that the single config results in multiple callbacks under two separate 
pids. This seems isolated to cases where the deploy/ folder is used to write 
the config, and doesn't happen when the configuration is manually placed in 
etc/.

Following the same instructions with Karaf 4.3.6 has the expected behavior. 
Karaf 4.3.7 and later experience this issue though.

Any ideas?

Thanks,
Jesse



CONFIDENTIALITY NOTICE
This e-mail message and any attachments are only for the use of the intended 
recipient and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If you are not the intended 
recipient, any disclosure, distribution or other use of this e-mail message or 
attachments is prohibited. If you have received this e-mail message in error, 
please delete and notify the sender immediately. Thank you.
<?xml version="1.0" encoding="UTF-8"?>
<features name="my-features" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0";>
    <feature name="config" version="1.0" install="auto">
        <config name="org.apache.karaf.example.config-abc">
          key1=value1
          key2=value2
        </config>
    </feature>
</features>

Reply via email to