Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 DCE18106B5 for ; Fri, 23 Jan 2015 19:20:34 +0000 (UTC) Received: (qmail 76874 invoked by uid 500); 23 Jan 2015 19:20:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 76832 invoked by uid 500); 23 Jan 2015 19:20:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 76821 invoked by uid 99); 23 Jan 2015 19:20:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 19:20:34 +0000 Date: Fri, 23 Jan 2015 19:20:34 +0000 (UTC) From: "Tsuyoshi OZAWA (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-3081) Potential indefinite wait in ContainerManagementProtocolProxy#addProxyToCache() 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/YARN-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289773#comment-14289773 ] Tsuyoshi OZAWA commented on YARN-3081: -------------------------------------- Thank you, Ted! > Potential indefinite wait in ContainerManagementProtocolProxy#addProxyToCache() > ------------------------------------------------------------------------------- > > Key: YARN-3081 > URL: https://issues.apache.org/jira/browse/YARN-3081 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Attachments: yarn-3081-001.patch > > > {code} > if (!removedProxy) { > // all of the proxies are currently in use and already scheduled > // for removal, so we need to wait until at least one of them closes > try { > this.wait(); > {code} > The above code can wait for a condition that has already been satisfied, leading to indefinite wait. -- This message was sent by Atlassian JIRA (v6.3.4#6332)