Tamas Domok created YARN-10894:
----------------------------------
Summary: Follow up YARN-10237: fix the new test case in
TestRMWebServicesCapacitySched
Key: YARN-10894
URL: https://issues.apache.org/jira/browse/YARN-10894
Project: Hadoop YARN
Issue Type: Bug
Reporter: Tamas Domok
The new test case in *TestRMWebServicesCapacitySched* is not testing anything:
A new queue "*C*" was created:
{code:java}
final String C = CapacitySchedulerConfiguration.ROOT + ".c";
config.setCapacity(C, "[memory=1024]");
{code}
but it was not added to the top level queues:
{code:java}
// Define top-level queues
config.setQueues(CapacitySchedulerConfiguration.ROOT,
new String[] {"a", "b"});{code}
So it does not test anything.
The asserts later should check the queue name like this:
{code:java}
- if (q.equals("c")) {
+ if (q.equals("root.c")) { {code}
Unfortunately some other asserts fail, so either the test is faulty or there is
some issue with the code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]