|
@@ -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,
|