DanielZhu58 commented on code in PR #6829:
URL: https://github.com/apache/hive/pull/6829#discussion_r4406502882
##########
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:
I narrowed it only so that add_replication_metrics, get_replication_metrics
and get_all_write_event_info (which declared just MetaException) could call it.
I've reverted authorizeProxyPrivilege() to throws TException and its original
TException bodies.
--
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]