hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kih...@apache.org
Subject hadoop git commit: HADOOP-15212. Add independent secret manager method for logging expired tokens. Contributed by Daryn Sharp.
Date Tue, 06 Feb 2018 21:43:32 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 1ef88c956 -> 6ea2a9389


HADOOP-15212. Add independent secret manager method for logging expired tokens. Contributed
by Daryn Sharp.

(cherry picked from commit 2dd960de983a30bf0d9ee957bdb09f825f9d40a3)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6ea2a938
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6ea2a938
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6ea2a938

Branch: refs/heads/branch-2.7
Commit: 6ea2a9389e8bd1b5aa35d01c5b1556f892181f11
Parents: 1ef88c9
Author: Kihwal Lee <kihwal@apache.org>
Authored: Tue Feb 6 15:43:19 2018 -0600
Committer: Kihwal Lee <kihwal@apache.org>
Committed: Tue Feb 6 15:43:19 2018 -0600

----------------------------------------------------------------------
 .../token/delegation/AbstractDelegationTokenSecretManager.java | 6 ++++++
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                    | 3 +++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/6ea2a938/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
index 02b3fea..ad06347 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
@@ -22,6 +22,7 @@ import java.io.ByteArrayInputStream;
 import java.io.DataInputStream;
 import java.io.IOException;
 import java.security.MessageDigest;
+import java.util.Collection;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -597,6 +598,11 @@ extends AbstractDelegationTokenIdentifier>
       }
     }
     // don't hold lock on 'this' to avoid edit log updates blocking token ops
+    logExpireTokens(expiredTokens);
+  }
+
+  protected void logExpireTokens(
+      Collection<TokenIdent> expiredTokens) throws IOException {
     for (TokenIdent ident : expiredTokens) {
       logExpireToken(ident);
       removeStoredToken(ident);

http://git-wip-us.apache.org/repos/asf/hadoop/blob/6ea2a938/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index f28e281..df62491 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -11,6 +11,9 @@ Release 2.7.6 - UNRELEASED
     HDFS-11003. Expose XmitsInProgress through DataNodeMXBean.
     (Brahma Reddy Battula)
 
+    HADOOP-15212. Add independent secret manager method for logging expired
+    tokens. (Daryn Sharp via kihwal)
+
   OPTIMIZATIONS
 
   BUG FIXES


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


Mime
View raw message