Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8E5A10C32 for ; Mon, 23 Feb 2015 17:33:12 +0000 (UTC) Received: (qmail 89303 invoked by uid 500); 23 Feb 2015 17:33:12 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 89271 invoked by uid 500); 23 Feb 2015 17:33:12 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 89260 invoked by uid 99); 23 Feb 2015 17:33:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2015 17:33:12 +0000 Date: Mon, 23 Feb 2015 17:33:12 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-9738) Ambari Server Deadlocks During Cluster Provisioning 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/AMBARI-9738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333551#comment-14333551 ] Hudson commented on AMBARI-9738: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #1837 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1837/]) AMBARI-9738 - Ambari Server Deadlocks During Cluster Provisioning (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=923bf81ae125ac6581cef053aa2c31baca1dcb65) * ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java * ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClustersDeadlockTest.java * ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java > Ambari Server Deadlocks During Cluster Provisioning > --------------------------------------------------- > > Key: AMBARI-9738 > URL: https://issues.apache.org/jira/browse/AMBARI-9738 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.0.0 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Critical > Fix For: 2.0.0 > > Attachments: ambariserverstack.txt > > > During provisioning of a cluster, a deadlock scenario can occur between {{ClusterImpl}} and {{ClustersImpl}}. > {noformat} > Thread-1 > Clusters.mapHostsToCluster (writeLock) > Cluster.refresh (writeLock) > > Thread-2 > Cluster.convertToResponse (readLock) > Clusters.getHost (readLock) > > Thread-1 Clusters.mapHostsToCluster (writeLock) > Thread-2 Cluster.convertToResponse (readLock) > Thread-1 Cluster.refresh (writeLock) (BLOCKED by Thread-2) > Thread-2 Clusters.getHost (readLock) (BLOCKED by Thread-1) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)