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

Kenji Kikushima commented on YARN-2075:
---------------------------------------

Hi [~mitdesai ], thanks for your testing.
I also tested patch on trunk locally, and confirmed TestRMAdminCLI passed.
This patch contains modification for HAAdmin.java. Please refresh if you didn't 
refresh o.a.h.ha yet.
{noformat}
$ mvn test -Dtest=org.apache.hadoop.yarn.client.TestRMAdminCLI
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hadoop-yarn-client 3.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (create-testdirs) @ hadoop-yarn-client 
---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.2:resources (default-resources) @ 
hadoop-yarn-client ---
[INFO] Using default encoding to copy filtered resources.
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
hadoop-yarn-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.2:testResources (default-testResources) @ 
hadoop-yarn-client ---
[INFO] Using default encoding to copy filtered resources.
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
hadoop-yarn-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ hadoop-yarn-client 
---
[INFO] Surefire report directory: 
/home/user/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.hadoop.yarn.client.TestRMAdminCLI
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.308 sec - in 
org.apache.hadoop.yarn.client.TestRMAdminCLI

Results :

Tests run: 13, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.266s
[INFO] Finished at: Wed May 28 13:33:31 UTC 2014
[INFO] Final Memory: 17M/268M
[INFO] ------------------------------------------------------------------------
{noformat}


> TestRMAdminCLI consistently fail on trunk and branch-2
> ------------------------------------------------------
>
>                 Key: YARN-2075
>                 URL: https://issues.apache.org/jira/browse/YARN-2075
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.5.0
>            Reporter: Zhijie Shen
>            Assignee: Kenji Kikushima
>         Attachments: YARN-2075.patch
>
>
> {code}
> Running org.apache.hadoop.yarn.client.TestRMAdminCLI
> Tests run: 13, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1.191 sec 
> <<< FAILURE! - in org.apache.hadoop.yarn.client.TestRMAdminCLI
> testTransitionToActive(org.apache.hadoop.yarn.client.TestRMAdminCLI)  Time 
> elapsed: 0.082 sec  <<< ERROR!
> java.lang.UnsupportedOperationException: null
>       at java.util.AbstractList.remove(AbstractList.java:144)
>       at java.util.AbstractList$Itr.remove(AbstractList.java:360)
>       at java.util.AbstractCollection.remove(AbstractCollection.java:252)
>       at 
> org.apache.hadoop.ha.HAAdmin.isOtherTargetNodeActive(HAAdmin.java:173)
>       at org.apache.hadoop.ha.HAAdmin.transitionToActive(HAAdmin.java:144)
>       at org.apache.hadoop.ha.HAAdmin.runCmd(HAAdmin.java:447)
>       at org.apache.hadoop.ha.HAAdmin.run(HAAdmin.java:380)
>       at org.apache.hadoop.yarn.client.cli.RMAdminCLI.run(RMAdminCLI.java:318)
>       at 
> org.apache.hadoop.yarn.client.TestRMAdminCLI.testTransitionToActive(TestRMAdminCLI.java:180)
> testHelp(org.apache.hadoop.yarn.client.TestRMAdminCLI)  Time elapsed: 0.088 
> sec  <<< FAILURE!
> java.lang.AssertionError: null
>       at org.junit.Assert.fail(Assert.java:86)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at org.junit.Assert.assertTrue(Assert.java:52)
>       at 
> org.apache.hadoop.yarn.client.TestRMAdminCLI.testError(TestRMAdminCLI.java:366)
>       at 
> org.apache.hadoop.yarn.client.TestRMAdminCLI.testHelp(TestRMAdminCLI.java:307)
> {code}



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

Reply via email to