dengzhhu653 commented on code in PR #6829:
URL: https://github.com/apache/hive/pull/6829#discussion_r4332227245


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/handler/BaseHandler.java:
##########
@@ -865,12 +865,12 @@ private void authorizeProxyPrivilege() throws TException {
       user = SecurityUtils.getUGI().getShortUserName();
     } catch (Exception ex) {
       LOG.error("Cannot obtain username", ex);
-      throw new TException(ex);
+      throw new MetaException(ex.getMessage());

Review Comment:
   The TException is a generic exception for thrift API, changing it to 
MetaException makes every API calling it should declare the MetaException 
explicitly, why do we change that?



-- 
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