Skip to content

Commit

Permalink
increased the timout for few configs
Browse files Browse the repository at this point in the history
  • Loading branch information
susheelgupta7 committed Nov 30, 2023
1 parent 478c4ce commit d3824e1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ public void testAMRMProxyTokenRenewal() throws Exception {
YarnClient rmClient = YarnClient.createYarnClient()) {
Configuration conf = new YarnConfiguration();
conf.setBoolean(YarnConfiguration.AMRM_PROXY_ENABLED, true);
conf.setInt(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS, 4500);
conf.setInt(YarnConfiguration.RM_NM_HEARTBEAT_INTERVAL_MS, 4500);
conf.setInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, 4500);
conf.setInt(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS, 8000);
conf.setInt(YarnConfiguration.RM_NM_HEARTBEAT_INTERVAL_MS, 8000);
conf.setInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, 12000);
// RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS should be at least
// RM_AM_EXPIRY_INTERVAL_MS * 1.5 *3
conf.setInt(
YarnConfiguration.RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS, 20);
YarnConfiguration.RM_AMRM_TOKEN_MASTER_KEY_ROLLING_INTERVAL_SECS, 37);
cluster.init(conf);
cluster.start();
final Configuration yarnConf = cluster.getConfig();
Expand Down Expand Up @@ -203,7 +203,7 @@ public void testAMRMProxyTokenRenewal() throws Exception {
lastToken = response.getAMRMToken();

// Time slot to be sure the AMRMProxy renew the token
Thread.sleep(4500);
Thread.sleep(9000);

}

Expand Down

0 comments on commit d3824e1

Please sign in to comment.