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

[jira] [Created] (HIVE-22018) Add table id to HMS get methods

Daniel Dai created HIVE-22018:
---------------------------------

             Summary: 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


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
(v7.6.14#76016)