hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2201) TestRMWebServicesAppsModification dependent on yarn-default.xml
Date Sat, 28 Jun 2014 14:33:26 GMT

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

Hudson commented on YARN-2201:
------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1788 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1788/])
YARN-2201. Made TestRMWebServicesAppsModification be independent of the changes on yarn-default.xml.
Contributed by Varun Vasudev. (zjshen: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1606285)
* /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsModification.java


> TestRMWebServicesAppsModification dependent on yarn-default.xml
> ---------------------------------------------------------------
>
>                 Key: YARN-2201
>                 URL: https://issues.apache.org/jira/browse/YARN-2201
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Ray Chiang
>            Assignee: Varun Vasudev
>              Labels: test
>             Fix For: 2.5.0
>
>         Attachments: apache-yarn-2201.0.patch, apache-yarn-2201.1.patch, apache-yarn-2201.2.patch,
apache-yarn-2201.3.patch
>
>
> TestRMWebServicesAppsModification.java has some errors that are yarn-default.xml dependent.
 By changing yarn-default.xml properties, I'm seeing the following errors:
> 1) Changing yarn.resourcemanager.scheduler.class from capacity.CapacityScheduler to fair.FairScheduler
gives the error:
> Running org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification
> Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 79.047 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification
> testSingleAppKillUnauthorized[1](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification)
 Time elapsed: 3.22 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Forbidden> but was:<Accepted>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification.testSingleAppKillUnauthorized(TestRMWebServicesAppsModification.java:458)
> 2) Changing yarn.acl.enable from false to true results in the following errors:
> Running org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification
> Tests run: 10, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 49.044 sec <<<
FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification
> testSingleAppKill[0](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification)
 Time elapsed: 2.986 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Accepted> but was:<Unauthorized>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification.testSingleAppKill(TestRMWebServicesAppsModification.java:287)
> testSingleAppKillInvalidState[0](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification)
 Time elapsed: 2.258 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Bad Request> but was:<Unauthorized>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification.testSingleAppKillInvalidState(TestRMWebServicesAppsModification.java:369)
> testSingleAppKillUnauthorized[0](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification)
 Time elapsed: 2.263 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Forbidden> but was:<Unauthorized>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification.testSingleAppKillUnauthorized(TestRMWebServicesAppsModification.java:458)
> testSingleAppKillInvalidId[0](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification)
 Time elapsed: 0.214 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Not Found> but was:<Unauthorized>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:743)
>         at org.junit.Assert.assertEquals(Assert.java:118)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification.testSingleAppKillInvalidId(TestRMWebServicesAppsModification.java:482)
> I'm opening this JIRA as a discussion for the best way to fix this.  I've got a few ideas,
but I would like to get some feedback about potentially more robust ways to fix this test.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message