hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject 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 Thu, 24 May 2018 18:18:14 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 097347c85 -> 911852e93


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
(cherry picked from commit 9eef19b2ad78b8464da252d0e23c08675898b9d8)


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

Branch: refs/heads/branch-2
Commit: 911852e93230d33624e19cc1fe43d0e8788be659
Parents: 097347c
Author: Wangda Tan <wangda@apache.org>
Authored: Mon Mar 26 11:19:15 2018 -0700
Committer: Jason Lowe <jlowe@apache.org>
Committed: Thu May 24 13:05:23 2018 -0500

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/911852e9/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 ba7cf11..af5ef5e 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
@@ -447,6 +447,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