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

Removed listener should only fire when something removed

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: