HuangZhenQiu commented on code in PR #26101: URL: https://github.com/apache/flink/pull/26101#discussion_r1941868325
########## flink-runtime/src/main/java/org/apache/flink/runtime/security/token/hadoop/HadoopFSDelegationTokenProvider.java: ########## @@ -110,7 +110,10 @@ public ObtainedDelegationTokens obtainDelegationTokens() throws Exception { return freshUGI.doAs( (PrivilegedExceptionAction<ObtainedDelegationTokens>) () -> { - Credentials credentials = new Credentials(); + LOG.debug("Loading delegation tokens available to UGI current user"); + Credentials credentials = + new Credentials( + UserGroupInformation.getCurrentUser().getCredentials()); Review Comment: Understand. How about define a new CurrentUserDelegationTokenProvider mainly for refresh the tokens added into container launch context? They are useful as these tokens are returned for setup execution context for containers. When a TM failure or JM recover from HA mode, these tokens need to be still valid. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org