You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "TezQA (JIRA)" <ji...@apache.org> on 2016/11/02 22:51:58 UTC

[jira] [Commented] (TEZ-3508) TestTaskScheduler cleanup

    [ https://issues.apache.org/jira/browse/TEZ-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15630803#comment-15630803 ] 

TezQA commented on TEZ-3508:
----------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment
  http://issues.apache.org/jira/secure/attachment/12836668/TEZ-3508.001.patch
  against master revision 2e121ec.

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 2 new or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version 3.0.1) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: https://builds.apache.org/job/PreCommit-TEZ-Build/2085//testReport/
Console output: https://builds.apache.org/job/PreCommit-TEZ-Build/2085//console

This message is automatically generated.

> TestTaskScheduler cleanup
> -------------------------
>
>                 Key: TEZ-3508
>                 URL: https://issues.apache.org/jira/browse/TEZ-3508
>             Project: Apache Tez
>          Issue Type: Test
>            Reporter: Jason Lowe
>            Assignee: Jason Lowe
>         Attachments: TEZ-3508.001.patch
>
>
> TestTaskScheduler is very fragile, since it builds mocks of the AMRM client that is tied very specifically to the particulars of the way the YarnTaskScheduler is coded.  Any variance in that often leads to test failures because the mocks no longer accurately reflect what the real AMRM client does.
> It would be much simpler and more robust to leverage the AMRMClientForTest and AMRMAsyncClientForTest classes in TestTaskSchedulerHelpers rather than maintain fragile mocks attempting to emulate the behaviors of those classes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)