Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 A305D17D20 for ; Tue, 1 Sep 2015 17:09:57 +0000 (UTC) Received: (qmail 23831 invoked by uid 500); 1 Sep 2015 17:09:46 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 23724 invoked by uid 500); 1 Sep 2015 17:09:46 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 23403 invoked by uid 99); 1 Sep 2015 17:09:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 17:09:46 +0000 Date: Tue, 1 Sep 2015 17:09:46 +0000 (UTC) From: "jeremie simon (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MAPREDUCE-6467) Submitting streaming job is not thread safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 jeremie simon created MAPREDUCE-6467: ---------------------------------------- Summary: Submitting streaming job is not thread safe Key: MAPREDUCE-6467 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6467 Project: Hadoop Map/Reduce Issue Type: Bug Components: job submission Affects Versions: 2.7.1 Reporter: jeremie simon Priority: Minor The submission of the streaming job is not thread safe. That is because the class StreamJob is using the OptionBuilder which is itself not thread safe. This can cause super tricky bugs. An easy fix would be to simply create instances of Option through the normal constructor and decorate the object if necessary. This fix should be applied on the functions createOption and createBoolOption. -- This message was sent by Atlassian JIRA (v6.3.4#6332)