hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HIVE-4574) XMLEncoder thread safety issues in openjdk7 causes HiveServer2 to be stuck
Date Wed, 06 Nov 2013 19:42:18 GMT

     [ https://issues.apache.org/jira/browse/HIVE-4574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thejas M Nair resolved HIVE-4574.
---------------------------------

    Resolution: Won't Fix

Yes, as you guys have already pointed out, this is not a problem in hive trunk (0.13) as the
serialization is done using kryo.


> 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, 0.12.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 was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message