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:38:46 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.9 43ea9a42d -> 39963d53d


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/39963d53
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/39963d53
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/39963d53

Branch: refs/heads/branch-2.9
Commit: 39963d53dfff6a62dcc7e01da2b88820321d536b
Parents: 43ea9a4
Author: Kihwal Lee <kihwal@apache.org>
Authored: Tue Feb 6 15:38:32 2018 -0600
Committer: Kihwal Lee <kihwal@apache.org>
Committed: Tue Feb 6 15:38:32 2018 -0600

----------------------------------------------------------------------
 .../token/delegation/AbstractDelegationTokenSecretManager.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/39963d53/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 f06681b..7593b4e 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;
@@ -627,6 +628,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);
       LOG.info("Removing expired token " + formatTokenId(ident));


---------------------------------------------------------------------
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