You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Prasanth Jayachandran (JIRA)" <ji...@apache.org> on 2018/08/01 22:32:00 UTC

[jira] [Updated] (HIVE-20274) HiveServer2 ObjectInspectorFactory leaks for Struct and List object inspectors

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

Prasanth Jayachandran updated HIVE-20274:
-----------------------------------------
    Attachment: HIVE-20274.2.patch

> HiveServer2 ObjectInspectorFactory leaks for Struct and List object inspectors
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-20274
>                 URL: https://issues.apache.org/jira/browse/HIVE-20274
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 3.0.0, 4.0.0
>            Reporter: Gopal V
>            Assignee: Prasanth Jayachandran
>            Priority: Major
>         Attachments: HIVE-20274.1.patch, HIVE-20274.2.patch
>
>
> Fix in HIVE-19860 needs to be applied to 
> {code}
>   static ConcurrentHashMap<ObjectInspector, StandardListObjectInspector>
>       cachedStandardListObjectInspector = new ConcurrentHashMap<ObjectInspector, StandardListObjectInspector>();
> ...
>   static ConcurrentHashMap<ArrayList<List<?>>, StandardStructObjectInspector> cachedStandardStructObjectInspector =
>       new ConcurrentHashMap<ArrayList<List<?>>, StandardStructObjectInspector>();
> ...
>   static ConcurrentHashMap<ArrayList<Object>, ColumnarStructObjectInspector> cachedColumnarStructObjectInspector =
>       new ConcurrentHashMap<ArrayList<Object>, ColumnarStructObjectInspector>();
> {code}
> And possibly for 
> {code}
>   static ConcurrentHashMap<Type, ObjectInspector> objectInspectorCache = new ConcurrentHashMap<Type, ObjectInspector>();
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)