abstractdog commented on code in PR #427:
URL: https://github.com/apache/tez/pull/427#discussion_r2681539466


##########
tez-dag/src/main/java/org/apache/tez/dag/app/DAGAppMaster.java:
##########
@@ -513,19 +514,21 @@ protected void serviceInit(final Configuration conf) 
throws Exception {
 
     jobTokenSecretManager = new JobTokenSecretManager(amConf);
 
-    sessionToken =
-        TokenCache.getSessionToken(amCredentials);
+    sessionToken = frameworkService.getAMExtensions().getSessionToken(
+      appAttemptID, jobTokenSecretManager, amCredentials);
+
     if (sessionToken == null) {
-      throw new RuntimeException("Could not find session token in AM 
Credentials");
+      sessionToken = TokenCache.getSessionToken(amCredentials);

Review Comment:
   right, so the extra effort doesn't make sense, let me change this to:
   ```
       if (sessionToken == null) {
         throw new RuntimeException("Could not find session token in AM 
Credentials");
       }
   ```



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