Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8585

Removed listener should only fire when something removed

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.2.0.CR1, 9.2.0.Final
    • 9.1.3.Final, 9.2.0.Beta1
    • Listeners
    • None

    Description

      Removed embedded listener is being fired even if no elements are being removed. This shouldn't be the case.

      This is not the case with remote listeners, where the server side code checks whether the old value is not null before sending the event to the client.

      https://github.com/infinispan/infinispan/blob/master/server/hotrod/src/main/java/org/infinispan/server/hotrod/ClientListenerRegistry.java#L398

      The embedded listener should not fire events in the first place.

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: