]
Tristan Tarrant updated ISPN-6766:
----------------------------------
Fix Version/s: 9.1.0.Final
(was: 9.0.0.Final)
hot rod client: RemoteCache.removeClient method does not remove the
listener from the list after server restart
---------------------------------------------------------------------------------------------------------------
Key: ISPN-6766
URL:
https://issues.jboss.org/browse/ISPN-6766
Project: Infinispan
Issue Type: Bug
Components: Listeners, Remote Protocols
Affects Versions: 8.2.1.Final
Reporter: Eli Z
Priority: Minor
Fix For: 9.1.0.Final
After registering a client listener in the client and then restarting the infinispan
server --> The original listener object can not be removed from the client listener
list by using the method RemoteCache.removeClient(Object listener) --> after calling
this method and then get all listeners, i still see the old listener in the list.
By doing a little debug, it seems that in class RemoveClientListenerOperation.execute
when trying to remove from the server and a failure status is returned (probably due to
the fact the the server after the restart does not know this listener id) the listener is
not removed from the list eventually. the line
this.listenerNotifier.removeClientListener(listenerId); is not executed.