Explorar o código

YARN-8201. Skip stacktrace of few exception from ClientRMService. Contributed by Bilwa S T.

(cherry picked from commit cc0310a5266c8b8351f338f5fc8087a203c68cac)
(cherry picked from commit b29479c93ab89b62ffca6c1614a920919e82111e)

Change-Id: I8288ba9ca88831baf276e93feabca2ca4fe2ded5
bibinchundatt %!s(int64=7) %!d(string=hai) anos
pai
achega
1a4f473a78

+ 4 - 0
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java

@@ -265,6 +265,10 @@ public class ClientRMService extends AbstractService implements
             conf.getInt(YarnConfiguration.RM_CLIENT_THREAD_COUNT, 
                 YarnConfiguration.DEFAULT_RM_CLIENT_THREAD_COUNT));
     
+    this.server.addTerseExceptions(ApplicationNotFoundException.class,
+        ApplicationAttemptNotFoundException.class,
+        ContainerNotFoundException.class);
+
     // Enable service authorization?
     if (conf.getBoolean(
         CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION,