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

Adam Antal commented on YARN-9800:
----------------------------------

After I've searched around the jiras, the problem looks quite similar to 
another test in that class: testRMDTMasterKeyStateOnRollingMasterKey (see 
YARN-8904). In YARN-8904 the problem was the same and it was mitigated by 
checking not the exact match but only a contains relation between the list of 
master keys.

Since in this test we wait for the expiry of the keys, and in the check part of 
the test we only check for exclusion of those keys (and again, not the exact 
match), we can provide the same solution here. I pull in the guys reviewed/had 
part in that jira whether they agree with this or not.

> TestRMDelegationTokens can fail in testRemoveExpiredMasterKeyInRMStateStore
> ---------------------------------------------------------------------------
>
>                 Key: YARN-9800
>                 URL: https://issues.apache.org/jira/browse/YARN-9800
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test, yarn
>    Affects Versions: 3.2.0
>            Reporter: Adam Antal
>            Assignee: Adam Antal
>            Priority: Major
>
> The test fails intermittently with the following stack trace:
> {noformat}
> java.lang.AssertionError: 
> expected:<[org.apache.hadoop.security.token.delegation.DelegationKey@c09cd1a8,
>  org.apache.hadoop.security.token.delegation.DelegationKey@ca089752]> but 
> was:<[org.apache.hadoop.security.token.delegation.DelegationKey@c09cd1a8, 
> org.apache.hadoop.security.token.delegation.DelegationKey@b206142c, 
> org.apache.hadoop.security.token.delegation.DelegationKey@ca089752]>
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.security.TestRMDelegationTokens.testRemoveExpiredMasterKeyInRMStateStore(TestRMDelegationTokens.java:161)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to