You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jürgen Thomann (JIRA)" <ji...@apache.org> on 2017/05/22 13:49:04 UTC
[jira] [Resolved] (HIVE-13531) Cache in json_tuple UDF grows larger
than it should
[ https://issues.apache.org/jira/browse/HIVE-13531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jürgen Thomann resolved HIVE-13531.
-----------------------------------
Resolution: Duplicate
Assignee: (was: Jason Dere)
is fixed by https://issues.apache.org/jira/browse/HIVE-16060
> Cache in json_tuple UDF grows larger than it should
> ---------------------------------------------------
>
> Key: HIVE-13531
> URL: https://issues.apache.org/jira/browse/HIVE-13531
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 1.1.0
> Environment: CDH 5.5.0 with Java 1.8.0_45
> Reporter: Jürgen Thomann
> Priority: Minor
>
> According to the code in ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java the HashCache should never grow larger than 16 entries. In the last OOM of Hive Server 2 I found this HashCache with over 1 million java.util.LinkedHashMap$Entry objects.
> The code looks right and works single threaded as it should when I tested it isolated. The only problem I can imagine with my limited Hive source code knowledge that it is accessed concurrently and somewhere the cleanup with removeEldestEntry is not working in that case.
> I had this problem with Hive 1.1.0 but the current implementation in master looks the same for the HashCache.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)