[
https://issues.apache.org/jira/browse/YARN-11384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shilun Fan resolved YARN-11384.
-------------------------------
Fix Version/s: 3.5.0
Hadoop Flags: Reviewed
Assignee: Cheng Pan (was: Aditya Sharma)
Resolution: Fixed
> 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: Cheng Pan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]