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

hot rod client: RemoteCache.removeClient method does not remove the listener from the list after server restart

    XMLWordPrintable

Details

    • Hide

      1. Start server
      2. start client
      3. register client listener
      4. shut down the server
      5. try to remove the listener from the client listener list -->Failed.
      6 start the server
      7. Try to remove listener again --> Failed. Expected that at least if server is up the old listeners can be removed. Since that way the client listenr list will grow in size.

      Show
      1. Start server 2. start client 3. register client listener 4. shut down the server 5. try to remove the listener from the client listener list -->Failed. 6 start the server 7. Try to remove listener again --> Failed. Expected that at least if server is up the old listeners can be removed. Since that way the client listenr list will grow in size.

    Description

      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.

      Attachments

        Activity

          People

            karestig@redhat.com Katia Aresti
            ez1234 Eli Z (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: