You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/14 16:21:00 UTC

[jira] [Updated] (HIVE-26036) NPE caused by getMTable() in ObjectStore

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

ASF GitHub Bot updated HIVE-26036:
----------------------------------
    Labels: pull-request-available  (was: )

> NPE caused by getMTable() in ObjectStore
> ----------------------------------------
>
>                 Key: HIVE-26036
>                 URL: https://issues.apache.org/jira/browse/HIVE-26036
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.1.2, 4.0.0
>            Reporter: Yu Weiqiang
>            Assignee: Yu Weiqiang
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: NPE_From_getMTable.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> *Issue*
> Some api in ObjectStore invoke getMTable() but not check that if the returned value is null, which caused the NPE, like addPartitions(), addPartition(), alterPartition() et.
> *Reason*
> Such api described above will check that whether the table exists in HMSHandler (first check), but if the table is dropped by other threads after the first check, the NPE will happen.
> The simple idea is that we can check the table each time we get from getMTable().
> *Stack example*
> !NPE_From_getMTable.png!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)