You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2017/08/11 21:02:00 UTC

[jira] [Commented] (HIVE-17301) Make JSONMessageFactory.getTObj method thread safe

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

Daniel Dai commented on HIVE-17301:
-----------------------------------

+1 pending test.

> Make JSONMessageFactory.getTObj method thread safe
> --------------------------------------------------
>
>                 Key: HIVE-17301
>                 URL: https://issues.apache.org/jira/browse/HIVE-17301
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Tao Li
>            Assignee: Tao Li
>         Attachments: HIVE-17301.1.patch
>
>
> This static method is using a singleton instance of TDeserializer, which is not thread safe. Instead we want to create a new instance per method call. This class is lightweight, so it should be fine from perf perspective. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)