hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaoyu Tang (JIRA)" <>
Subject [jira] [Commented] (HIVE-14626) Support Trash in Truncate Table
Date Thu, 25 Aug 2016 15:59:20 GMT


Chaoyu Tang commented on HIVE-14626:

The new failed tests (schemeAuthority & TestPigHBaseStorageHandler) seem not related to
this patch. I could not reproduce the schemeAuthority failure in my local machine. As for
the TestPigHBaseStorageHandler, the Yarn server was started and the failure is not related.
Other failures are aged and not related to this patch as well.
[~spena], [~ychena] Could you review the patch? Thanks

> Support Trash in Truncate Table
> -------------------------------
>                 Key: HIVE-14626
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Query Processor
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>            Priority: Minor
>         Attachments: HIVE-14626.patch
> Currently Truncate Table (or Partition) is implemented using FileSystem.delete and then
recreate the directory, so
> 1. it does not support HDFS Trash
> 2. if the table/partition directory is initially encryption protected, after being deleted
and recreated, it is no more protected.
> The new implementation is to clean the contents of directory using multi-threaded trashFiles.
If Trash is enabled and has a lower encryption level than the data directory, the files under
it will be deleted. Otherwise, they will be Trashed

This message was sent by Atlassian JIRA

View raw message