You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2022/12/09 12:47:00 UTC

[jira] [Commented] (YARN-11384) NPE in DelegationTokenRenewer causes all subsequent apps to fail with "Timer already cancelled"

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

Steve Loughran commented on YARN-11384:
---------------------------------------

looks like YARN-9109; same stack trace just different cause

> NPE in DelegationTokenRenewer causes all subsequent apps to fail with "Timer already cancelled"
> -----------------------------------------------------------------------------------------------
>
>                 Key: YARN-11384
>                 URL: https://issues.apache.org/jira/browse/YARN-11384
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>            Priority: Major
>
> All newly submitted yarn apps start failing with following error in the diagnostic message
> {noformat}
> org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer: Unable to add the application to the delegation token renewer.
> java.lang.IllegalStateException: Timer already cancelled.
>         at java.util.Timer.sched(Timer.java:397)
>         at java.util.Timer.schedule(Timer.java:208)
>         at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer.setTimerForTokenRenewal(DelegationTokenRenewer.java:604)
>         at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer.handleAppSubmitEvent(DelegationTokenRenewer.java:515)
>         at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer.access$900(DelegationTokenRenewer.java:79)
>         at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:923)
>         at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:900)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> {noformat}
>  Any uncaught exception at DelegationTokenRenewer.RenewalTimerTask#run causes all subsequent yarn apps to fail with java.lang.IllegalStateException: Timer already cancelled
> One such NPE is thrown when DelegationTokenRenewer.RenewalTimerTask#run invokes  DelegationTokenRenewer#removeFailedDelegationToken that tries to remove token from the "DelegationTokenRenewer#appTokens" for an applicationId.
> If DelegationTokenRenewer#appTokens map didn’t have the <ApplicationId, Set<DelegationTokenToRenew>> entry while token (DelegationTokenToRenew) had the reference to the applicationId, then NPE is thrown leading to "Timer already cancelled"
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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