Fredy Wijaya created HIVE-21807:
-----------------------------------

             Summary: Provide a variant of IMetaStoreClient.createTable() that 
returns populated Table
                 Key: HIVE-21807
                 URL: https://issues.apache.org/jira/browse/HIVE-21807
             Project: Hive
          Issue Type: Improvement
          Components: Metastore
    Affects Versions: 3.0.0
            Reporter: Fredy Wijaya


Currently 
https://github.com/apache/hive/blob/6664c44c795e467c08c79948270409f03a86d8c2/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java#L1678-L1679
 does not provide a way to return a create timestamp and many other information 
from the Table. Calling IMetastore.getTable() isn't an atomic operation and can 
be slightly racy.

By having a variant of IMetastoreClient.createTable() that returns a populated 
Table, we can make this operation atomic and avoid any race condition.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to