Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
Description
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 table 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.