[infinispan-issues] [JBoss JIRA] (ISPN-9589) Client Listener notifications can deadlock

William Burns (Jira) issues at jboss.org
Fri Oct 5 16:44:00 EDT 2018


William Burns created ISPN-9589:
-----------------------------------

             Summary: Client Listener notifications can deadlock
                 Key: ISPN-9589
                 URL: https://issues.jboss.org/browse/ISPN-9589
             Project: Infinispan
          Issue Type: Bug
          Components: Listeners, Server
            Reporter: William Burns


When a node does a write and it is the primary owner it will send the client listener event. Unfortunately this can block waiting to put in the eventQueue. Unfortunately the thread that is executing this method can be the event loop for that listener, which in turn can cause it to block forever. I believe this came about after ISPN-8621.

I have found two ways to fix this at the moment:

# Make the client listener async - this way it is fired on the notification thread
# Change the listener event to check if the current thread is the event loop and subsequently fire the events directly instead of submitting it to the Executor.

The former of the fixes seems to be much more performant, but I don't know if I like that fix. The latter still has hiccups since it reduces availability of threads to respond to socket requests.

This is very easy to reproduce by running the ClientEventStressTest test on master as is.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list