mirror of
https://github.com/apache/impala.git
synced 2026-02-03 09:00:39 -05:00
HdfsTable.dropPartition() doesn't uncache the partition right now. If the partition is dropped from Hive and refreshed in Impala, the partition will be removed from the catalog but the cache directive remains. Because Impala directly uses HMS client to drop a table/database, the cache directive won't be removed even if the table is dropped in Impala, if the backgroud loading is run concurrenty with the HMS client RPC call. This patch removes the cache directive in dropPartition() if the partition is removed from HMS. Change-Id: Id7701a499405e961456adea63f3592b43bd69170 Reviewed-on: http://gerrit.cloudera.org:8080/10792 Reviewed-by: Bharath Vissapragada <bharathv@cloudera.com> Tested-by: Tianyi Wang <twang@cloudera.com>