You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Szilard Nemeth (Jira)" <ji...@apache.org> on 2022/02/17 18:09:00 UTC

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

     [ https://issues.apache.org/jira/browse/YARN-10894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Szilard Nemeth updated YARN-10894:
----------------------------------
    Description: 
The new test case (added with [YARN-10237|https://issues.apache.org/jira/secure/attachment/13001074/YARN-10237-003.patch]) 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.

  was:
The new test case (added with [YARN-10237|https://issues.apache.org/jira/secure/attachment/13001074/YARN-10237-003.patch] 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.


> 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
>            Assignee: Tamas Domok
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The new test case (added with [YARN-10237|https://issues.apache.org/jira/secure/attachment/13001074/YARN-10237-003.patch]) 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.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org