[
https://issues.apache.org/jira/browse/HIVE-29106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033698#comment-18033698
]
Dmitriy Fingerman commented on HIVE-29106:
------------------------------------------
Hi [~zengxl] , please set the affected version(s).
> When drop a table, there is no need to verify the directory permission
> ----------------------------------------------------------------------
>
> Key: HIVE-29106
> URL: https://issues.apache.org/jira/browse/HIVE-29106
> Project: Hive
> Issue Type: Bug
> Reporter: zengxl
> Assignee: zengxl
> Priority: Major
> Labels: pull-request-available
>
> When drop a table, there is no need to verify the directory permission. An
> exception should be thrown when the table path deletion fails.
> HIVE-28804 When ranger is not enabled, this method of checking permissions is
> possible. However, there is a situation where the partitions of the partition
> table do not have write permission for the directory. In this case, deletion
> will also fail and files will be left on HDFS.
> When HiveServer2 integrates Ranger for authentication, there will be a bug in
> the permission verification. Ranger has already granted write permissions for
> the database tables and even partitions. However, when attempting to delete a
> table, it still prompts that there is no permission for the database
> directory or the table directory, resulting in the inability to delete the
> table.
> The correct solution is to remove the table without verifying the directory
> write permission, not to catch the exception when deleting the data
> directory, but to throw the exception instead, and at the same time roll back
> the metadata information.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)