slfan1989 commented on code in PR #4954:
URL: https://github.com/apache/hadoop/pull/4954#discussion_r984128757
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMAppManager.java:
##########
@@ -1054,4 +1060,24 @@ private void copyPlacementQueueToSubmissionContext(
context.setQueue(placementContext.getQueue());
}
}
+
+ @VisibleForTesting
+ public void setFederationStateStoreService(FederationStateStoreService
stateStoreService) {
+ this.federationStateStoreService = stateStoreService;
+ }
+
+ private void removeApplicationIdFromStateStore(ApplicationId applicationId) {
+ if (HAUtil.isFederationEnabled(conf) && federationStateStoreService !=
null) {
+ try {
+ DeleteApplicationHomeSubClusterResponse response =
+
federationStateStoreService.cleanUpFinishApplicationsWithRetries(applicationId);
+ if (response != null) {
+ LOG.info("applicationId = {} remove from state store success.",
+ applicationId);
Review Comment:
Thank you very much for your help reviewing the code, I will fix it.
--
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]