hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chaoyu Tang <ctang...@gmail.com>
Subject Re: Review Request 57566: HIVE-16189: Table column stats might be invalidated in a failed table rename
Date Mon, 13 Mar 2017 20:46:50 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57566/
-----------------------------------------------------------

(Updated March 13, 2017, 8:46 p.m.)


Review request for hive.


Bugs: HIVE-16189
    https://issues.apache.org/jira/browse/HIVE-16189


Repository: hive-git


Description
-------

If the table rename does not succeed due to its failure in moving the data to the new renamed
table folder, the changes in TAB_COL_STATS are not rolled back which leads to invalid column
stats.

This patch changes the order of metadata update and data move in alter table rename operation,
which makes it easier to roll back metadata changes when moving data fails in rename a table.


Diffs (updated)
-----

  metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java bae39ac 


Diff: https://reviews.apache.org/r/57566/diff/3/

Changes: https://reviews.apache.org/r/57566/diff/2-3/


Testing
-------


Thanks,

Chaoyu Tang


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message