Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 94D0A2009F3 for ; Fri, 20 May 2016 12:10:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 937C0160A0E; Fri, 20 May 2016 10:10:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DE06C1609AF for ; Fri, 20 May 2016 12:10:13 +0200 (CEST) Received: (qmail 99802 invoked by uid 500); 20 May 2016 10:10:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 99785 invoked by uid 99); 20 May 2016 10:10:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 10:10:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D86E02C1F60 for ; Fri, 20 May 2016 10:10:12 +0000 (UTC) Date: Fri, 20 May 2016 10:10:12 +0000 (UTC) From: "hongbin ma (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13179) ToolRunner is not thread-safe because commons-cli OptionBuilder is not thread-safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 20 May 2016 10:10:14 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] hongbin ma updated HADOOP-13179: -------------------------------- Attachment: HADOOP-13179.001.patch > ToolRunner is not thread-safe because commons-cli OptionBuilder is not thread-safe > ---------------------------------------------------------------------------------- > > Key: HADOOP-13179 > URL: https://issues.apache.org/jira/browse/HADOOP-13179 > Project: Hadoop Common > Issue Type: Bug > Reporter: hongbin ma > Assignee: hongbin ma > Priority: Minor > Attachments: HADOOP-13179-master.patch, HADOOP-13179.001.patch > > > I'm running into similar issues like http://stackoverflow.com/questions/22462665/is-hadoops-toorunner-thread-safe, the author's observation seem to make sense to me. However when I checked the hadoop github trunk I found the issue still not fixed. > Chris Nauroth further investigated this issue, here's his quote: > {quote} > The root cause is that commons-cli OptionBuilder is not thread-safe. > https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cl > i/OptionBuilder.html > According to this issue, commons-cli doesn't plan to change that and > instead chose to document the lack of thread-safety. > https://issues.apache.org/jira/browse/CLI-209 > I think we can solve this in Hadoop, probably with a one-line change to > make GenericOptionsParser#buildGeneralOptions a synchronized method. > {quote} > I'll soon upload a patch for this -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org