فهرست منبع

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

(cherry picked from commit cc0310a5266c8b8351f338f5fc8087a203c68cac)
bibinchundatt 7 سال پیش
والد
کامیت
c198550cc7

+ 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

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