[
https://issues.redhat.com/browse/ISPN-12423?page=com.atlassian.jira.plugi...
]
Will Burns commented on ISPN-12423:
-----------------------------------
From the off heap stack traces it appears that it boils down to some threads blocking
waiting on the lruLock which is present for the given data container when eviction is
enabled.
However, I couldn't find any thread that would actually be holding the lock and a
glance at the source for 11.0.4 all references to the lock have the same try finally
unlock idiom which means it should always be unlocked.
Looking at the on heap one and it seems to be a similar issue that there is no thread
holding the lock and just a bunch waiting for it, note our on heap implementation is using
Caffeine, which I would be surprised if they had an issue with their locks as well.
I can try to glance again tomorrow with fresh eyes though :)
Infispan thread freezing (STUCK) - dead lock occured
----------------------------------------------------
Key: ISPN-12423
URL:
https://issues.redhat.com/browse/ISPN-12423
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 11.0.4.Final
Reporter: Evgenii Balakhonov
Priority: Major
Attachments: Thread dump - heap storage.txt, Thread dump sync.txt, Thread
dump.txt, cache-configuration-jdbc.xml
During huge load some threads hangs on
java.lang.Thread.State: WAITING (parking)
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005d2e654a8> (a
java.util.concurrent.locks.StampedLock)
at java.util.concurrent.locks.StampedLock.acquireRead(StampedLock.java:1215)
at java.util.concurrent.locks.StampedLock.readLock(StampedLock.java:428)
at
org.infinispan.container.offheap.OffHeapConcurrentMap.peekOrGet(OffHeapConcurrentMap.java:615)
at
org.infinispan.container.offheap.OffHeapConcurrentMap.peek(OffHeapConcurrentMap.java:682)
I attached Infinispan configuration and three thread dumps:
* off heap storage enabled (Thread dump.txt)
* heap storage enabled (Thread dump - heap storage.txt)
* off heap storage enabled and replicated cache mode="SYNC" (thread dump
sync.txt)
Under high load, Infinspan freezes 100% of the cases.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)