From f4b687b8731ccef262b3b560dea8546522caafb5 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Tue, 6 May 2014 15:45:49 +0000 Subject: [PATCH] YARN-2018. TestClientRMService.testTokenRenewalWrongUser fails after HADOOP-10562. (Contributed by Ming Ma) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1592783 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../yarn/server/resourcemanager/TestClientRMService.java | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 7b712e1388..ccd0a20d66 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -82,6 +82,9 @@ Release 2.5.0 - UNRELEASED YARN-738. TestClientRMTokens is failing irregularly while running all yarn tests (Ming Ma via jlowe) + YARN-2018. TestClientRMService.testTokenRenewalWrongUser fails after + HADOOP-10562 (Ming Ma via Arpit Agarwal) + Release 2.4.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java index 13ab17cf08..77530cffa1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java @@ -478,9 +478,8 @@ public Void run() throws Exception { checkTokenRenewal(owner, other); return null; } catch (YarnException ex) { - Assert.assertTrue(ex.getMessage().contains( - "Client " + owner.getUserName() + - " tries to renew a token with renewer specified as " + + Assert.assertTrue(ex.getMessage().contains(owner.getUserName() + + " tries to renew a token with renewer " + other.getUserName())); throw ex; }