YARN-2429. TestAMRMTokens.testTokenExpiry fails Intermittently with error message:Invalid AMRMToken (zxu via rkanter)

This commit is contained in:
Robert Kanter 2015-04-06 14:11:20 -07:00
parent 28bebc81db
commit 99b08a748e
2 changed files with 9 additions and 0 deletions

View File

@ -148,6 +148,9 @@ Release 2.8.0 - UNRELEASED
YARN-2666. TestFairScheduler.testContinuousScheduling fails Intermittently. YARN-2666. TestFairScheduler.testContinuousScheduling fails Intermittently.
(Zhihai Xu via ozawa) (Zhihai Xu via ozawa)
YARN-2429. TestAMRMTokens.testTokenExpiry fails Intermittently with
error message:Invalid AMRMToken (zxu via rkanter)
Release 2.7.0 - UNRELEASED Release 2.7.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -107,6 +107,12 @@ public TestAMRMTokens(Configuration conf) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Test @Test
public void testTokenExpiry() throws Exception { 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(); MyContainerManager containerManager = new MyContainerManager();
final MockRMWithAMS rm = final MockRMWithAMS rm =