From 99b08a748e7b00a58b63330b353902a6da6aae27 Mon Sep 17 00:00:00 2001 From: Robert Kanter Date: Mon, 6 Apr 2015 14:11:20 -0700 Subject: [PATCH] YARN-2429. TestAMRMTokens.testTokenExpiry fails Intermittently with error message:Invalid AMRMToken (zxu via rkanter) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../server/resourcemanager/security/TestAMRMTokens.java | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 695c4a6a32..f836f04453 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -148,6 +148,9 @@ Release 2.8.0 - UNRELEASED YARN-2666. TestFairScheduler.testContinuousScheduling fails Intermittently. (Zhihai Xu via ozawa) + YARN-2429. TestAMRMTokens.testTokenExpiry fails Intermittently with + error message:Invalid AMRMToken (zxu via rkanter) + Release 2.7.0 - 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/security/TestAMRMTokens.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/security/TestAMRMTokens.java index 0be72e3292..5dfd09244a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/security/TestAMRMTokens.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/security/TestAMRMTokens.java @@ -107,6 +107,12 @@ public TestAMRMTokens(Configuration conf) { @SuppressWarnings("unchecked") @Test public void testTokenExpiry() throws Exception { + conf.setLong( + YarnConfiguration.RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS, + YarnConfiguration. + DEFAULT_RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS); + conf.setLong(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, + YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS); MyContainerManager containerManager = new MyContainerManager(); final MockRMWithAMS rm =