hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject hadoop git commit: HADOOP-13813. TestDelegationTokenFetcher#testDelegationTokenWithoutRenewer is failing. Contributed by Mingliang Liu
Date Sat, 12 Nov 2016 18:41:24 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 fcedb6812 -> 4bcef1c61


HADOOP-13813. TestDelegationTokenFetcher#testDelegationTokenWithoutRenewer is failing. Contributed
by Mingliang Liu

(cherry picked from commit fb3a5085e8057c79e0785e7e7bf7da031c3f3c12)


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

Branch: refs/heads/branch-2.8
Commit: 4bcef1c6165cac164ff724bdb3327d36c49d302d
Parents: fcedb68
Author: Mingliang Liu <liuml07@apache.org>
Authored: Fri Nov 11 22:06:43 2016 -0800
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Sat Nov 12 10:37:46 2016 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/tools/TestDelegationTokenFetcher.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/4bcef1c6/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestDelegationTokenFetcher.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestDelegationTokenFetcher.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestDelegationTokenFetcher.java
index d343326..75425a7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestDelegationTokenFetcher.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestDelegationTokenFetcher.java
@@ -133,15 +133,16 @@ public class TestDelegationTokenFetcher {
       Iterator<Token<?>> itr = creds.getAllTokens().iterator();
       // make sure we got back exactly the 1 token we expected
       assertTrue(itr.hasNext());
-      assertNotNull("Token without renewer shouldn't be null", itr.next());
+      final Token token = itr.next();
+      assertNotNull("Token without renewer shouldn't be null", token);
       assertTrue(!itr.hasNext());
       try {
         // Without renewer renewal of token should fail.
         DelegationTokenFetcher.main(new String[] { "--renew", tokenFile });
         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


Mime
View raw message