karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Muñiz (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-2478) Producer status is ignored when config is updated on cluster
Date Thu, 19 Sep 2013 08:44:53 GMT
Pablo Muñiz created KARAF-2478:
----------------------------------

             Summary: Producer status is ignored when config is updated on cluster
                 Key: KARAF-2478
                 URL: https://issues.apache.org/jira/browse/KARAF-2478
             Project: Karaf
          Issue Type: Bug
          Components: cellar-hazelcast
    Affects Versions: cellar-3.0.0
            Reporter: Pablo Muñiz


Even though producer status is OFF, when a configuration property is changed an event is sent
to notify all nodes in cluster.

Basically this comes from _EventProducer_ generation on hazelcast module.
When an EventProducer is requested to _org.apache.karaf.cellar.hazelcast.HazelcastEventTransportFactory_
it is instantiated without looking at configuration, so whenever _getSwitch()_ method is called
on _EventProducer_ a _BasicSwitch_ instance is returned with ON status.

Injecting _configurationAdmin_ on EventProducer created by _org.apache.karaf.cellar.hazelcast.HazelcastEventTransportFactory_
will solve the issue.

_getSwitch()_ method would return current producer status.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message