LuciferYang opened a new pull request, #14408:
URL: https://github.com/apache/gravitino/pull/14408

   ### What changes were proposed in this pull request?
   
   When impersonation is disabled, `ClosableHiveCatalog.doKerberosOperations` 
runs the operation as the Kerberos login user without requesting a delegation 
token, as `ClosableJdbcCatalog` already does through 
`KerberosCatalogUtils.doKerberosOperations`. The impersonation path is 
unchanged.
   
   ### Why are the changes needed?
   
   All requests share the login UGI, so it must not carry any caller's token. 
Operations that run as the login user do not need the token either.
   
   Fix: #14406
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   New `TestClosableHiveCatalog`: without impersonation, no token is requested 
and the login UGI holds no token; with impersonation, the token is requested 
for the proxied principal and lands on the proxy UGI only.
   


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

Reply via email to