You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Heribert Hirth (Created) (JIRA)" <ji...@apache.org> on 2012/02/07 13:12:59 UTC

[jira] [Created] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Cellar does not replicate Managed Service Factory configurations correctly
--------------------------------------------------------------------------

                 Key: KARAF-1190
                 URL: https://issues.apache.org/jira/browse/KARAF-1190
             Project: Karaf
          Issue Type: Bug
          Components: cellar-config
    Affects Versions: cellar-2.2.3
            Reporter: Heribert Hirth


During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):

{code}
PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
  Factory PID = foo.datasource.factory
  BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
  foo.factory.driver.classloader.factory.args = org.h2_1.3.154
  org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
  osgi.jdbc.driver.class = org.h2.Driver
  osgi.jdbc.driver.name = h2
  osgi.jdbc.driver.version = 1.3.154
  service.factoryPid = foo.datasource.factory
  service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
{code}

But the replicated entry on another cluster node looks like that:

{code}
PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
  BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
  foo.factory.driver.classloader.factory.args = org.h2_1.3.154
  org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
  osgi.jdbc.driver.class = org.h2.Driver
  osgi.jdbc.driver.name = h2
  osgi.jdbc.driver.version = 1.3.154
  service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257260#comment-13257260 ] 

Jean-Baptiste Onofré commented on KARAF-1190:
---------------------------------------------

The factoryPid is a filtered property:

private static String[] FILTERED_PROPERTIES = {"service.pid", "service.factoryPid", "felix.fileinstall.filename"};

That's why it's not sync by Cellar (these properties are ignored during the dictionary filtering).

It's due to the fact that the factory is not necessary present on the node where the config has been sync.

However, we can imagine to have a Cellar configuration describing which property has to be filtered.
                
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262588#comment-13262588 ] 

Jean-Baptiste Onofré commented on KARAF-1190:
---------------------------------------------

You are right, it's not so logic ;)

I'm removing service.pid from the filtered properties.
                
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-1190:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Heribert Hirth (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262582#comment-13262582 ] 

Heribert Hirth commented on KARAF-1190:
---------------------------------------

Hm, then it seems a bit strange to me that the service.pid of both entries is exactly the same in my example, since it's a filtered property.

The reason behind filtering the factory PID is not really clear to me, since the factory is not necessarily present on the original node, too.
                
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-1190:
----------------------------------------

    Fix Version/s: cellar-2.2.4
                   cellar-3.0.0
    
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-3.0.0, cellar-2.2.4
>
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (KARAF-1190) Cellar does not replicate Managed Service Factory configurations correctly

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-1190.
-----------------------------------------

    Resolution: Fixed
    
> Cellar does not replicate Managed Service Factory configurations correctly
> --------------------------------------------------------------------------
>
>                 Key: KARAF-1190
>                 URL: https://issues.apache.org/jira/browse/KARAF-1190
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-config
>    Affects Versions: cellar-2.2.3
>            Reporter: Heribert Hirth
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-3.0.0, cellar-2.2.4
>
>
> During the replication of Config Admin entries the property {{service.factoryPid}} is lost. For example a Managed Service Factory entry looks like this on the original node (copied from the web console):
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   Factory PID = foo.datasource.factory
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.factoryPid = foo.datasource.factory
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}
> But the replicated entry on another cluster node looks like that:
> {code}
> PID = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
>   BundleLocation = mvn:org.apache.karaf.cellar/org.apache.karaf.cellar.config/2.2.3
>   foo.factory.driver.classloader.factory.args = org.h2_1.3.154
>   org.apache.karaf.features.configKey = foo.datasource.factory-h2datasourceFactory
>   osgi.jdbc.driver.class = org.h2.Driver
>   osgi.jdbc.driver.name = h2
>   osgi.jdbc.driver.version = 1.3.154
>   service.pid = foo.datasource.factory.c3811782-c150-46e6-b47b-691baacc908e
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira