ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4717) Cache size hangs on cache clear
Date Fri, 17 Feb 2017 10:46:41 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871645#comment-15871645
] 

Vladimir Ozerov commented on IGNITE-4717:
-----------------------------------------

This is a regression from IGNITE-4239 (commit {{861fab9}}). It fixed a starvation when {{IgniteCache.clear()}}
was called from compute task. With this fix we moved size calculation to management pool.

The problem is that {{VisorCacheClearTask}} is also executed in management pool, so when all
threads from the pool are exhausted we receive a hang. 

> Cache size hangs on cache clear
> -------------------------------
>
>                 Key: IGNITE-4717
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4717
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.9
>            Reporter: Andrey Novikov
>             Fix For: 1.9
>
>
> * Run two nodes with load
> * Clear ten or more caches by sending VisorCacheClearTask at one moment
> * In thread dump I found locked threads in management pool
> {code}
> "mgmt-#78%tester%" Id=133 WAITING on org.apache.ignite.internal.ComputeTaskInternalFuture@23edc803
> 	at sun.misc.Unsafe.park(Native Method)
> 	-  waiting on org.apache.ignite.internal.ComputeTaskInternalFuture@23edc803
> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
> 	at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:161)
> 	at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:119)
> 	at org.apache.ignite.internal.processors.cache.GridCacheAdapter.size(GridCacheAdapter.java:3717)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message