You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Self deadlock on the cache server when a client is irresponsive #207
We observed a down caused by a stuck cache-server. A client was not responding to puts/invalidate/fetches and other clients got stuck waiting for these broadcasts.
Under normal conditions, broadcasts have a deadline which is checked by the blazingcache.server.CacheServer.Expirer thread and, if reached, cause the slow client to be disconected (invalidating all pending operations waiting for it and unblocking the waiting threads).
This did not happen. It seems that the expirer thread was also stuck
"cache-server-expire-thread" #44 [3546874] daemon prio=5 os_prio=0 cpu=2564091.11ms elapsed=1170123.00s tid=0x00007f69
92800870 nid=3546874 waiting on condition [0x00007f6964c0d000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
- parking to wait for <0x00000007cb60eaf0> (a java.util.concurrent.CountDownLatch$Sync)
at java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:221)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.j
ava:754)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly([email protected]/AbstractQ
ueuedSynchronizer.java:1099)
at java.util.concurrent.CountDownLatch.await([email protected]/CountDownLatch.java:230)
at blazingcache.server.CacheServer$Expirer.run(CacheServer.java:232)
at java.lang.Thread.runWith([email protected]/Thread.java:1583)
at java.lang.Thread.run([email protected]/Thread.java:1570)
The expirer is responsible to invalidate expired cache entries and to check the broadcasts deadlines, but an invalidate for an expired entry was blocking the expirer thread, and so the broadcasts deadlines stopped being checked and the whole server grinded to halt
Activity