You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/09/16 19:29:07 UTC

[GitHub] [hadoop] slfan1989 commented on a diff in pull request #4892: YARN-11226. [Federation] Add createNewReservation, submitReservation, updateReservation, deleteReservation REST APIs for Router.

slfan1989 commented on code in PR #4892:
URL: https://github.com/apache/hadoop/pull/4892#discussion_r973327713


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestFederationInterceptorREST.java:
##########
@@ -142,6 +154,23 @@ public void setUp() {
       Assert.fail();
     }
 
+    try {
+      for (SubClusterId subCluster : subClusters) {
+        SubClusterInfo subClusterInfo = stateStoreUtil.querySubClusterInfo(subCluster);
+        interceptor.getOrCreateInterceptorForSubCluster(
+            subCluster, subClusterInfo.getRMWebServiceAddress());
+      }
+    } catch (YarnException e) {

Review Comment:
   Thanks for your help reviewing the code, I will fix it.



##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestFederationInterceptorREST.java:
##########
@@ -142,6 +154,23 @@ public void setUp() {
       Assert.fail();
     }
 
+    try {
+      for (SubClusterId subCluster : subClusters) {
+        SubClusterInfo subClusterInfo = stateStoreUtil.querySubClusterInfo(subCluster);
+        interceptor.getOrCreateInterceptorForSubCluster(
+            subCluster, subClusterInfo.getRMWebServiceAddress());
+      }
+    } catch (YarnException e) {
+      LOG.error(e.getMessage());
+      Assert.fail();
+    }
+
+    try {
+      interceptor.setupResourceManager();
+    } catch (Exception e) {

Review Comment:
   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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org