You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Tamas Domok (Jira)" <ji...@apache.org> on 2021/08/24 08:09:00 UTC

[jira] [Created] (YARN-10894) Follow up YARN-10237: fix the new test case in TestRMWebServicesCapacitySched

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: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org