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)

Reply via email to