hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From naganarasimha...@apache.org
Subject [02/50] [abbrv] hadoop git commit: YARN-8068. Application Priority field causes NPE in app timeline publish when Hadoop 2.7 based clients to 2.8+ (Sunil G via wangda)
Date Mon, 02 Apr 2018 07:18:18 GMT
YARN-8068. Application Priority field causes NPE in app timeline publish when Hadoop 2.7 based
clients to 2.8+ (Sunil G via wangda)

Change-Id: I7910bd1064a1b4dbbe2084080c060822ea6f3b48


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9eef19b2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9eef19b2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9eef19b2

Branch: refs/heads/YARN-3409
Commit: 9eef19b2ad78b8464da252d0e23c08675898b9d8
Parents: 5d38157
Author: Wangda Tan <wangda@apache.org>
Authored: Mon Mar 26 11:19:15 2018 -0700
Committer: Wangda Tan <wangda@apache.org>
Committed: Mon Mar 26 11:19:15 2018 -0700

----------------------------------------------------------------------
 .../hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java     | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/9eef19b2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java
index 61936bb..4234e58 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/RMAppImpl.java
@@ -455,6 +455,11 @@ public class RMAppImpl implements RMApp, Recoverable {
     if (submissionContext.getPriority() != null) {
       this.applicationPriority = Priority
           .newInstance(submissionContext.getPriority().getPriority());
+    } else {
+      // If incoming app does not have priority configured in submission
+      // context, system could be assume that its a 0 priority app and could be
+      // considered as normal.
+      this.applicationPriority = Priority.newInstance(0);
     }
 
     int globalMaxAppAttempts = conf.getInt(YarnConfiguration.RM_AM_MAX_ATTEMPTS,


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


Mime
View raw message