yuqi1129 commented on issue #5891:
URL: https://github.com/apache/gravitino/issues/5891#issuecomment-3191092870

   <img width="1645" height="752" alt="Image" 
src="https://github.com/user-attachments/assets/007eef54-4014-460e-a6bf-be09bf41deca";
 />
   
    PrincipalUtils.getCurrentUserName() will randomly get a user in the UGI, so 
the problem occurs. The principals in `subject` is a set and can't guarantee 
the sequence: we should always use the last one.
   
   <img width="960" height="643" alt="Image" 
src="https://github.com/user-attachments/assets/bd5c62ac-898c-43e6-b470-8386c2bd0177";
 />
   
   
   @jerqi Maybe we should try using thread local as I have proposed initially. 
   
   


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