YARN-7285. ContainerExecutor always launches with priorities due to yarn-default property. Contributed by Jason Lowe.

This commit is contained in:
Naganarasimha 2017-10-06 00:06:25 +05:30
parent 7e76f85bc6
commit d0046bb5c6
2 changed files with 2 additions and 5 deletions

View File

@ -1869,10 +1869,10 @@
<property>
<description>
Adjustment to the container OS scheduling priority. In Linux, passed
directly to the nice command.
directly to the nice command. If unspecified then containers are launched
without any explicit OS priority.
</description>
<name>yarn.nodemanager.container-executor.os.sched.priority.adjustment</name>
<value>0</value>
</property>
<property>

View File

@ -247,9 +247,6 @@ public class TestLinuxContainerExecutorWithMocks {
// make sure the command doesn't contain the nice -n since priority
// not specified
List<String> command = new ArrayList<String>();
Configuration conf = mockExec.getConf();
conf.unset(YarnConfiguration.NM_CONTAINER_EXECUTOR_SCHED_PRIORITY);
mockExec.setConf(conf);
mockExec.addSchedPriorityCommand(command);
assertEquals("addSchedPriority should be empty", 0, command.size());
}