YARN-264. y.s.rm.DelegationTokenRenewer attempts to renew token even after removing an app. (kkambatl via tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1421578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eed48f54f5
commit
6a29bf5703
|
@ -108,6 +108,9 @@ Release 2.0.3-alpha - Unreleased
|
|||
|
||||
YARN-267. Fix fair scheduler web UI. (Sandy Ryza via tomwhite)
|
||||
|
||||
YARN-264. y.s.rm.DelegationTokenRenewer attempts to renew token even
|
||||
after removing an app. (kkambatl via tucu)
|
||||
|
||||
Release 2.0.2-alpha - 2012-09-07
|
||||
|
||||
YARN-9. Rename YARN_HOME to HADOOP_YARN_HOME. (vinodkv via acmurthy)
|
||||
|
|
|
@ -301,13 +301,18 @@ public class DelegationTokenRenewer extends AbstractService {
|
|||
*/
|
||||
private class RenewalTimerTask extends TimerTask {
|
||||
private DelegationTokenToRenew dttr;
|
||||
private boolean cancelled = false;
|
||||
|
||||
RenewalTimerTask(DelegationTokenToRenew t) {
|
||||
dttr = t;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
public synchronized void run() {
|
||||
if (cancelled) {
|
||||
return;
|
||||
}
|
||||
|
||||
Token<?> token = dttr.token;
|
||||
try {
|
||||
// need to use doAs so that http can find the kerberos tgt
|
||||
|
@ -331,6 +336,12 @@ public class DelegationTokenRenewer extends AbstractService {
|
|||
removeFailedDelegationToken(dttr);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized boolean cancel() {
|
||||
cancelled = true;
|
||||
return super.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue