zhengchenyu commented on code in PR #6260:
URL: https://github.com/apache/hadoop/pull/6260#discussion_r1386528806


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/utils/FederationStateStoreFacade.java:
##########
@@ -1104,7 +1104,7 @@ public Collection<SubClusterInfo> getActiveSubClusters()
   public ApplicationSubmissionContext 
getApplicationSubmissionContext(ApplicationId appId) {
     try {
       GetApplicationHomeSubClusterResponse response = 
stateStore.getApplicationHomeSubCluster(
-          GetApplicationHomeSubClusterRequest.newInstance(appId));
+          GetApplicationHomeSubClusterRequest.newInstance(appId, true));
       ApplicationHomeSubCluster appHomeSubCluster = 
response.getApplicationHomeSubCluster();

Review Comment:
   I found that the originalSubmissionContext is null. And when call 
getApplicationSubmissionContext, 
GetApplicationHomeSubClusterRequest::setContainsAppSubmissionContext is not 
called, so will return null context.



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