Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A366B10177 for ; Tue, 30 Jul 2013 04:51:57 +0000 (UTC) Received: (qmail 1103 invoked by uid 500); 30 Jul 2013 04:51:53 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 1048 invoked by uid 500); 30 Jul 2013 04:51:52 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 948 invoked by uid 500); 30 Jul 2013 04:51:50 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 929 invoked by uid 99); 30 Jul 2013 04:51:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 04:51:48 +0000 Date: Tue, 30 Jul 2013 04:51:48 +0000 (UTC) From: "Chen Chun (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4574) XMLEncoder thread safety issues in openjdk7 causes HiveServer2 to be stuck 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-4574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723399#comment-13723399 ] Chen Chun commented on HIVE-4574: --------------------------------- I also encountered this problem with oracle jdk 1.7.0_21 > XMLEncoder thread safety issues in openjdk7 causes HiveServer2 to be stuck > -------------------------------------------------------------------------- > > Key: HIVE-4574 > URL: https://issues.apache.org/jira/browse/HIVE-4574 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.11.0 > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Attachments: HIVE-4574.1.patch > > > In open jdk7, XMLEncoder.writeObject call leads to calls to java.beans.MethodFinder.findMethod(). MethodFinder class not thread safe because it uses a static WeakHashMap that would get used from multiple threads. See - > http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/com/sun/beans/finder/MethodFinder.java#46 > Concurrent access to HashMap implementation that are not thread safe can sometimes result in infinite-loops and other problems. If jdk7 is in use, it makes sense to synchronize calls to XMLEncoder.writeObject . -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira