Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
cellar-3.0.0
-
None
Description
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.