Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF8E8E938 for ; Sat, 5 Jan 2013 01:55:13 +0000 (UTC) Received: (qmail 59739 invoked by uid 500); 5 Jan 2013 01:55:12 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 59662 invoked by uid 500); 5 Jan 2013 01:55:12 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 59648 invoked by uid 99); 5 Jan 2013 01:55:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 01:55:12 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wsxys08@gmail.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-la0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 01:55:05 +0000 Received: by mail-la0-f51.google.com with SMTP id fj20so10781783lab.38 for ; Fri, 04 Jan 2013 17:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Gn/h3EHI7N7zwxarDmtyFW2aXndbxqCDQHKGsUB6zG0=; b=s8poGWA0qo69HUk+trV0n7l36zTioYL2o7SdJhpZ8qHoJ1whUTnfxaFypSLCgjYs3h fK0izdi1SvdaQeLAcCvXekY/ciiMF+thn4P6qPQCBeDrPg6V7bnWC4UM1Il779t2SfP6 G/ow6wvxSaKwdLnStx6QessPbJzWbYHQpt8SC80b7mfO7/9HgNyw2AaRnGo3GrESG/IX i9w9FTKY5s1NW03ADPGdx27oa0Azp9VrNvdmaPrn9bi4JhsKova5H7zEsKon4iW4uj1i pa7Yvixp9bcSxHFRDtmwCateFRmg1n+oa/LF+oN24MEHnSO2Dlik+z1ieCbG0871cT1H ZBMw== MIME-Version: 1.0 Received: by 10.112.47.38 with SMTP id a6mr22449726lbn.93.1357350883781; Fri, 04 Jan 2013 17:54:43 -0800 (PST) Received: by 10.114.92.144 with HTTP; Fri, 4 Jan 2013 17:54:43 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Jan 2013 09:54:43 +0800 Message-ID: Subject: Re: HiveHistoryViewer concurrency problem From: Qiang Wang To: user@hive.apache.org Content-Type: multipart/alternative; boundary=bcaec554da04436d0c04d280e1db X-Virus-Checked: Checked by ClamAV on apache.org --bcaec554da04436d0c04d280e1db Content-Type: text/plain; charset=ISO-8859-1 Does Anybody have an idea about this? https://issues.apache.org/jira/browse/HIVE-3857 2013/1/4 Qiang Wang > new HiveHistoryViewer() throws ConcurrentModificationException when called > concurrently by several threads. > > According to the stack trace, HiveHistory.parseLine use *private static > Map parseBuffer* to store parsed data and this caused the > exception. > > I don't know why a static buffer rather than a local buffer is used! > Anybody have an idea about this? > --bcaec554da04436d0c04d280e1db Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Does Anybody have an idea about this?

https://issues.apache.org/jira/browse/HIVE-3857


2013/1/= 4 Qiang Wang <wsxys08@gmail.com>
new HiveHistoryViewer() throws ConcurrentModificationExcep= tion when called concurrently by several threads.

Ac= cording to the stack trace, HiveHistory.parseLine use=A0private static Map<String, String&= gt; parseBuffer=A0to store=A0parsed data and this caused the exception.=

I don't know why a static buffer rather than a loca= l buffer is used! Anybody have an idea about this?

--bcaec554da04436d0c04d280e1db--