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 52CA8200C3A for ; Fri, 17 Mar 2017 03:22:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 514AF160B8B; Fri, 17 Mar 2017 02:22:50 +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 9C9A5160B78 for ; Fri, 17 Mar 2017 03:22:49 +0100 (CET) Received: (qmail 7153 invoked by uid 500); 17 Mar 2017 02:22:48 -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 7144 invoked by uid 99); 17 Mar 2017 02:22:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 02:22:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4FED018F164 for ; Fri, 17 Mar 2017 02:22:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 70hXdZqyqCma for ; Fri, 17 Mar 2017 02:22:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E58BE5F473 for ; Fri, 17 Mar 2017 02:22:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 473ECE086A for ; Fri, 17 Mar 2017 02:22:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 955EB254B9 for ; Fri, 17 Mar 2017 02:22:41 +0000 (UTC) Date: Fri, 17 Mar 2017 02:22:41 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-16183) Fix potential thread safety issues with static variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Mar 2017 02:22:50 -0000 [ https://issues.apache.org/jira/browse/HIVE-16183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xuefu Zhang updated HIVE-16183: ------------------------------- Resolution: Fixed Fix Version/s: 2.2.0 Status: Resolved (was: Patch Available) Patch #4 is committed to master. Thanks to reviewers, Rui, Sergy, and Peter. > Fix potential thread safety issues with static variables > -------------------------------------------------------- > > Key: HIVE-16183 > URL: https://issues.apache.org/jira/browse/HIVE-16183 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 2.2.0 > > Attachments: HIVE-16183.1.patch, HIVE-16183.2.patch, HIVE-16183.3.patch, HIVE-16183.4.patch, HIVE-16183.4.patch, HIVE-16183.4.patch, HIVE-16183.patch > > > Many concurrency issues (HIVE-12768, HIVE-16175, HIVE-16060) have been found with respect to class static variable usages. With fact that HS2 supports concurrent compilation and task execution as well as some backend engines (such as Spark) running multiple tasks in a single JVM, traditional assumption (or mindset) of single threaded execution needs to be abandoned. > This purpose of this JIRA is to do a global scan of static variables in Hive code base, and correct potential thread-safety issues. However, it's not meant to be exhaustive. -- This message was sent by Atlassian JIRA (v6.3.15#6346)