Skip to content

Commit f1bd005

Browse files
author
liubin04
committed
fix unit test error
1 parent 5c474dd commit f1bd005

File tree

1 file changed

+2
-2
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm

1 file changed

+2
-2
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public GetNewApplicationResponse getNewApplication(
365365
routerMetrics.succeededAppsCreated(stopTime - startTime);
366366
return response;
367367
}
368-
} catch (IOException e) {
368+
} catch (RetriableException e) {
369369
routerMetrics.incrAppsFailedCreated();
370370
RouterAuditLogger.logFailure(user.getShortUserName(), GET_NEW_APP, UNKNOWN,
371371
TARGET_CLIENT_RM_SERVICE, e.getMessage());
@@ -530,7 +530,7 @@ public SubmitApplicationResponse submitApplication(
530530
return response;
531531
}
532532

533-
} catch (IOException e) {
533+
} catch (RetriableException e) {
534534
routerMetrics.incrAppsFailedSubmitted();
535535
RouterAuditLogger.logFailure(user.getShortUserName(), SUBMIT_NEW_APP, UNKNOWN,
536536
TARGET_CLIENT_RM_SERVICE, e.getMessage(), applicationId);

0 commit comments

Comments
 (0)