You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (JIRA)" <ji...@apache.org> on 2012/07/17 06:33:36 UTC

[jira] [Commented] (HIVE-2544) Nullpointer on registering udfs.

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

Namit Jain commented on HIVE-2544:
----------------------------------

@Edward, your patch solves the problem for registering UDFs.

But, it is still possible to get NPEs, if different threads are performing showfunctions and register functions concurrently.
Not sure, if you want to solve it in the same jira.
Otherwise, please file a follow-up jira for that, and I will accept this one.
                
> Nullpointer on registering udfs.
> --------------------------------
>
>                 Key: HIVE-2544
>                 URL: https://issues.apache.org/jira/browse/HIVE-2544
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.9.0
>            Reporter: Bennie Schut
>            Assignee: Bennie Schut
>            Priority: Blocker
>         Attachments: HIVE-2544.1.patch.txt, HIVE-2544.patch.2.txt
>
>
> Currently the Function registry can throw NullPointers when multiple threads are trying to register the same function. The normal put() will replace the existing registered function object even if it's exactly the same function.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira