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

Shilun Fan updated YARN-10256:
------------------------------
          Component/s: test
         Hadoop Flags: Reviewed
     Target Version/s: 3.3.1, 3.2.2, 3.4.0
    Affects Version/s: 3.3.1
                       3.2.2
                       3.4.0

> Refactor 
> TestContainerSchedulerQueuing.testContainerUpdateExecTypeGuaranteedToOpportunistic
> -------------------------------------------------------------------------------------------
>
>                 Key: YARN-10256
>                 URL: https://issues.apache.org/jira/browse/YARN-10256
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.2.2, 3.4.0, 3.3.1
>            Reporter: Ahmed Hussein
>            Assignee: Ahmed Hussein
>            Priority: Major
>              Labels: refactoring, unit-test
>             Fix For: 3.2.2, 3.4.0, 3.3.1
>
>         Attachments: YARN-10256.001.patch
>
>
> In 3.x, 
> {{TestContainerSchedulerQueuing.testContainerUpdateExecTypeGuaranteedToOpportunistic}}
>  has redundant assertions. Since the UT throws timeout exception, 
> {{GenericTestsUtils.waitFor()}} guarantees that the predicate is met 
> successfully. Otherwise, the UT would throw a timeout exception.
> The redundant loop causes confusion in understanding the test unit and may 
> increase the possibility of failure in case the container terminates



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to