ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Mashenkov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-8295) Possible deadlock on partition eviction.
Date Tue, 17 Apr 2018 10:18:00 GMT
Andrew Mashenkov created IGNITE-8295:

             Summary: Possible deadlock on partition eviction.
                 Key: IGNITE-8295
                 URL: https://issues.apache.org/jira/browse/IGNITE-8295
             Project: Ignite
          Issue Type: Bug
            Reporter: Andrew Mashenkov
         Attachments: deadlock.stack

GridCacheOffheapManager.recreateCacheDataStore() calls updatePartitionCounter() under partStoreLock
which may try to acquire checkpointReadLock.

recreateCacheDataStore() method can be called with checkpointReadLock (on GridDhtPartitionsExchangeFuture.updatePartitionFullMap)

or without checkpointReadLock (GridDhtPartitionEvictor thread calls evictPartitionAsync),

So, checkpoint can cause a deadlock if it happens in between.

Seems, we should acquire checkpointReadLock before partStoreLock. 

This message was sent by Atlassian JIRA

View raw message