You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Brock Noland (JIRA)" <ji...@apache.org> on 2013/03/08 20:34:12 UTC

[jira] [Commented] (HIVE-4141) InspectorFactories contains static HashMaps which can cause infinite loop

    [ https://issues.apache.org/jira/browse/HIVE-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13597437#comment-13597437 ] 

Brock Noland commented on HIVE-4141:
------------------------------------

Two solutions, make the methods synchronizes or use ConcurrentHashMaps. CHM makes sense as these objects are stateless.
                
> InspectorFactories contains static HashMaps which can cause infinite loop
> -------------------------------------------------------------------------
>
>                 Key: HIVE-4141
>                 URL: https://issues.apache.org/jira/browse/HIVE-4141
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Server Infrastructure
>            Reporter: Brock Noland
>
> When many clients hit hs2, hs2 can get stuck in an infinite loop due to concurrent modification of the static maps here:
> https://github.com/apache/hive/blob/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/objectinspector/LazyObjectInspectorFactory.java
> and in other ObjectFactories. 

--
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