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

Robert Kanter updated YARN-5816:
--------------------------------
    Attachment: YARN-5816.001.patch

Like many flakey tests, this issue is due to timing.  The test is expecting a 
token to be canceled, and it is, but some of the assert statements need more 
time before they can pass.  The patch adds some {{waitFor}} blocks to help with 
this.  I ran the test 50 times and it passes every time now.  Without the 
changes, it would fail pretty much every time for me.

> TestDelegationTokenRenewer#testCancelWithMultipleAppSubmissions is still 
> flakey
> -------------------------------------------------------------------------------
>
>                 Key: YARN-5816
>                 URL: https://issues.apache.org/jira/browse/YARN-5816
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager, test
>            Reporter: Daniel Templeton
>            Assignee: Robert Kanter
>            Priority: Minor
>         Attachments: 
> org.apache.hadoop.yarn.server.resourcemanager.security.TestDelegationTokenRenewer-output.txt,
>  
> org.apache.hadoop.yarn.server.resourcemanager.security.TestDelegationTokenRenewer.txt,
>  YARN-5816.001.patch
>
>
> Even after YARN-5057, 
> TestDelegationTokenRenewer#testCancelWithMultipleAppSubmissions is still 
> flakey:
> {noformat}
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.796 sec <<< 
> FAILURE! - in 
> org.apache.hadoop.yarn.server.resourcemanager.security.TestDelegationTokenRenewer
> testCancelWithMultipleAppSubmissions(org.apache.hadoop.yarn.server.resourcemanager.security.TestDelegationTokenRenewer)
>   Time elapsed: 2.307 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.server.resourcemanager.security.TestDelegationTokenRenewer.testCancelWithMultipleAppSubmissions(TestDelegationTokenRenewer.java:1260)
> {noformat}
> Note that it's the same error as YARN-5057, but on a different line.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to