wecharyu commented on PR #4448:
URL: https://github.com/apache/hive/pull/4448#issuecomment-1639601533

   > I found that the exception has been recorded before throwing the exception:
   > ```java
   > LOG.error("HiveMetaStoreAuthorizer.onEvent(): failed", e);
   > ```
   
   The exception e will lost the root cause, because it's wrapped in 
`checkPrivileges`: 
https://github.com/apache/hive/blob/f61efe666f0e5432c87daeb0b8c6c5b4d2aeb47b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java#L603-L607
   
   > In my opinion, the original message is clear from the user's perspective, 
if want to check the validation step, there are some logs provided in HS2.
   
   I strongly agree! Actually I just want to complement the error log with root 
cause in server side in this patch. It does not change anything for users.


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