Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2478

Producer status is ignored when config is updated on cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cellar-3.0.0
    • cellar-3.0.0, cellar-2.3.2
    • cellar
    • 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.

      Attachments

        1. KARAF-2478-cellar-3.0.0.patch
          3 kB
          Pablo Muñiz

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            pablo.muniz Pablo Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: