You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Kishen Das (Jira)" <ji...@apache.org> on 2020/05/28 22:14:00 UTC

[jira] [Updated] (HIVE-22018) [ Interface changes ] Add table id to HMS get methods

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

Kishen Das updated HIVE-22018:
------------------------------
    Summary: [ Interface changes ] Add table id to HMS get methods  (was: Add table id to HMS get methods)

> [ Interface changes ] Add table id to HMS get methods
> -----------------------------------------------------
>
>                 Key: HIVE-22018
>                 URL: https://issues.apache.org/jira/browse/HIVE-22018
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Daniel Dai
>            Assignee: Kishen Das
>            Priority: Major
>
> It is possible we remove a table and immediately move another table to occupy the same name. CachedStore may retrieve the wrong table in this case. We shall add tableid in every get_(table/partition) api, so we can compare the one stored in TBLS (tableid is part of Table object) and check if the same id, if not, HMS shall fail the read request. The initial table id can be retrieved along with writeid (in DbTxnManager.getValidWriteIds call, to join the TBLS table)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)