Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-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 2358B1881F for ; Wed, 6 Jan 2016 03:14:40 +0000 (UTC) Received: (qmail 60351 invoked by uid 500); 6 Jan 2016 03:14:40 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 60323 invoked by uid 500); 6 Jan 2016 03:14:40 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 60302 invoked by uid 99); 6 Jan 2016 03:14:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 03:14:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DED2C2C0451 for ; Wed, 6 Jan 2016 03:14:39 +0000 (UTC) Date: Wed, 6 Jan 2016 03:14:39 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-12758) Parallel compilation: Operator::resetId() is not thread-safe 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/HIVE-12758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-12758: ------------------------------------ Attachment: HIVE-12758.01.patch Fixing stuff. > Parallel compilation: Operator::resetId() is not thread-safe > ------------------------------------------------------------ > > Key: HIVE-12758 > URL: https://issues.apache.org/jira/browse/HIVE-12758 > Project: Hive > Issue Type: Bug > Components: Physical Optimizer > Affects Versions: 2.0.0, 2.1.0 > Reporter: Gopal V > Assignee: Sergey Shelukhin > Attachments: HIVE-12758.01.patch, HIVE-12758.patch > > > {code} > private static AtomicInteger seqId; > ... > public Operator() { > this(String.valueOf(seqId.getAndIncrement())); > } > public static void resetId() { > seqId.set(0); > } > {code} > Potential race-condition. -- This message was sent by Atlassian JIRA (v6.3.4#6332)