dengzhhu653 commented on code in PR #6884:
URL: https://github.com/apache/hive/pull/6884#discussion_r4332323396
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/handler/TransactionHandler.java:
##########
@@ -491,6 +503,11 @@ public void compact(CompactionRequest rqst) throws
TException {
}
@Override
public CompactionResponse compact2(CompactionRequest rqst) throws TException
{
+ try {
Review Comment:
The compacts is a maintenance API, let's consider:
If a user passes in `authorizeProxyPrivilege`, then let the request go,
otherwise fire the authorization check on the table being requested.
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/handler/TransactionHandler.java:
##########
@@ -491,6 +503,11 @@ public void compact(CompactionRequest rqst) throws
TException {
}
@Override
public CompactionResponse compact2(CompactionRequest rqst) throws TException
{
+ try {
Review Comment:
The compact2 is a maintenance API, let's consider:
If a user passes in `authorizeProxyPrivilege`, then let the request go,
otherwise fire the authorization check on the table being requested.
--
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]