MAPREDUCE-1701. Fixes a problem to do with exception handling in delegation-token renewals. Contributed by Boris Shkolnik.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/mapreduce/trunk@980280 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 17e6314..6300c1e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -199,6 +199,9 @@
mapping that the tasks use at runtime for looking up delegation tokens.
(Boris Shkolnik via ddas)
+ MAPREDUCE-1701. Fixes a problem to do with exception handling in
+ delegation-token renewals. (Boris Shkolnik via ddas)
+
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES
diff --git a/src/java/org/apache/hadoop/mapreduce/security/token/DelegationTokenRenewal.java b/src/java/org/apache/hadoop/mapreduce/security/token/DelegationTokenRenewal.java
index b9ed0f3..dfbbdae 100644
--- a/src/java/org/apache/hadoop/mapreduce/security/token/DelegationTokenRenewal.java
+++ b/src/java/org/apache/hadoop/mapreduce/security/token/DelegationTokenRenewal.java
@@ -163,6 +163,7 @@
} catch (AccessControlException ioe) {
LOG.warn("failed to renew token:"+token, ioe);
removeFailedDelegationToken(dttr);
+ throw new IOException("failed to renew token", ioe);
} catch (Exception e) {
LOG.warn("failed to renew token:"+token, e);
// returns default expiration date