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

Xuefu Zhang commented on HIVE-16060:
------------------------------------

+1

> GenericUDTFJSONTuple's json cache could overgrow beyond its limit
> -----------------------------------------------------------------
>
>                 Key: HIVE-16060
>                 URL: https://issues.apache.org/jira/browse/HIVE-16060
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>         Attachments: HIVE-16060.1.patch, image.png
>
>
> At the moment the [cache 
> object|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java#L96]
>  used in {{GenericUDTFJSONTuple}} is a static linked hashmap that is not 
> thread-safe. In the case of HoS it may be accessed concurrently and has race 
> conditions. In particular, its size may overgrow even though the limit is 32. 
> This can be observed from the attached image.
> An easy way to fix it is to make it non-static.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to