Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7629618DE3 for ; Fri, 28 Aug 2015 15:24:51 +0000 (UTC) Received: (qmail 61420 invoked by uid 500); 28 Aug 2015 15:24:46 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 61223 invoked by uid 500); 28 Aug 2015 15:24:46 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 61088 invoked by uid 99); 28 Aug 2015 15:24:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 15:24:46 +0000 Date: Fri, 28 Aug 2015 15:24:46 +0000 (UTC) From: "Ivan Veselovsky (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-1304) Async cache operations in IGFS may cause deadlock related to topology update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14719980#comment-14719980 ] Ivan Veselovsky commented on IGNITE-1304: ----------------------------------------- In the old IGFS tests (where the problem was reproducible) I don't observe the deadlock any more, but StackOverflow problem is still stably reproducible. > Async cache operations in IGFS may cause deadlock related to topology update > ---------------------------------------------------------------------------- > > Key: IGNITE-1304 > URL: https://issues.apache.org/jira/browse/IGNITE-1304 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: ignite-1.4 > Reporter: Ivan Veselovsky > Assignee: Semen Boikov > Fix For: ignite-1.4 > > Attachments: deadlock-1304.txt > > > In an IGFS test we observe a deadlock situation related to cluster topology update (full thread dump is attached). > The problem is that several threads are waiting for the topology update, at the same time holding the read lock of the topology version update: > Thread #1: > GridAffinityAssignmentCache.awaitTopologyVersion(GridAffinityAssignmentCache.java:450) > .... > GridNearOptimisticTxPrepareFuture.prepareOnTopology(GridNearOptimisticTxPrepareFuture.java:280) > At the same time another thread, that wants to update the topology version, cannot do that because it needs the write lock of the topology update: > Thread #2: > at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:945) > at o.a.i.i.processors.cache.distributed.dht.GridDhtPartitionTopologyImpl.updateTopologyVersion(GridDhtPartitionTopologyImpl.java:190) -- This message was sent by Atlassian JIRA (v6.3.4#6332)