zxl-333 opened a new pull request, #5997:
URL: https://github.com/apache/hive/pull/5997

   …ry permission
   
   
   ### What changes were proposed in this pull request?
   When drop a table, there is no need to verify the directory permission. An 
exception should be thrown when the table path deletion fails.
   
   
   ### Why are the changes needed?
   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.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to