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

Kenji Kikushima updated YARN-2075:
----------------------------------

    Attachment: YARN-2075.patch

Attached a patch.
- testTransitionToActive failure: Changed to use ArrayList at 
HAAdmin#getTargetIds. HAAdmin#getTargetIds uses only Arrays.asList, it returns 
a fixed-size list. So, UnsupportedOperationException occured by calling remove 
in HAAdmin#isOtherTargetNodeActive.
- testHelp failure: Adjusted space and "--forceactive" message at 
transitionToActive command usage test.

> TestRMAdminCLI consistently fail on trunk
> -----------------------------------------
>
>                 Key: YARN-2075
>                 URL: https://issues.apache.org/jira/browse/YARN-2075
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Zhijie Shen
>         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