You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by li...@apache.org on 2016/11/12 18:35:47 UTC
hadoop git commit: HADOOP-13813.
TestDelegationTokenFetcher#testDelegationTokenWithoutRenewer is failing.
Contributed by Mingliang Liu
Repository: hadoop
Updated Branches:
refs/heads/trunk 2ee18fc15 -> 96f43921b
HADOOP-13813. TestDelegationTokenFetcher#testDelegationTokenWithoutRenewer is failing. Contributed by Mingliang Liu
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/96f43921
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/96f43921
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/96f43921
Branch: refs/heads/trunk
Commit: 96f43921baf790365232b1559338d32c0e78a4ef
Parents: 2ee18fc
Author: Mingliang Liu <li...@apache.org>
Authored: Fri Nov 11 21:56:47 2016 -0800
Committer: Mingliang Liu <li...@apache.org>
Committed: Sat Nov 12 10:35:22 2016 -0800
----------------------------------------------------------------------
.../apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/96f43921/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java
index dbaae9d..3f9fdf1 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDelegationTokenFetcher.java
@@ -135,7 +135,8 @@ public class TestDelegationTokenFetcher {
Credentials creds = Credentials.readTokenStorageFile(p, conf);
Iterator<Token<?>> itr = creds.getAllTokens().iterator();
assertTrue("token not exist error", itr.hasNext());
- assertNotNull("Token should be there without renewer", itr.next());
+ final Token token = itr.next();
+ assertNotNull("Token should be there without renewer", token);
// Test compatibility of DelegationTokenFetcher.printTokensToString
String expectedNonVerbose = "Token (HDFS_DELEGATION_TOKEN token 1 for " +
@@ -154,8 +155,8 @@ public class TestDelegationTokenFetcher {
DelegationTokenFetcher.renewTokens(conf, p);
fail("Should have failed to renew");
} catch (AccessControlException e) {
- GenericTestUtils.assertExceptionContains(
- "tried to renew a token without a renewer", e);
+ GenericTestUtils.assertExceptionContains("tried to renew a token ("
+ + token.decodeIdentifier() + ") without a renewer", e);
}
} finally {
cluster.shutdown();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org