Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 A585A1199F for ; Tue, 20 May 2014 23:15:39 +0000 (UTC) Received: (qmail 66948 invoked by uid 500); 20 May 2014 23:15:39 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 66901 invoked by uid 500); 20 May 2014 23:15:39 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 66892 invoked by uid 99); 20 May 2014 23:15:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2014 23:15:39 +0000 Date: Tue, 20 May 2014 23:15:39 +0000 (UTC) From: "Jason Lowe (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10622) Shell.runCommand can deadlock 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/HADOOP-10622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Lowe updated HADOOP-10622: -------------------------------- Attachment: HADOOP-10622.patch Attaching a quick patch that should solve the problem for the common case where the thread is only interrupted once. Basic idea is to remember if we successfully joined with the errThread, and if we didn't we try to do so again before attempting to close the input stream. > Shell.runCommand can deadlock > ----------------------------- > > Key: HADOOP-10622 > URL: https://issues.apache.org/jira/browse/HADOOP-10622 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.3.0 > Reporter: Jason Lowe > Priority: Critical > Attachments: HADOOP-10622.patch > > > Ran into a deadlock in Shell.runCommand. Stacktrace details to follow. -- This message was sent by Atlassian JIRA (v6.2#6252)