Skip to content

Commit

Permalink
Speed up ci test when am crashed (#594)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangjunfan <[email protected]>
Signed-off-by: zhangjunfan <[email protected]>
  • Loading branch information
zuston authored Sep 2, 2021
1 parent bde944c commit c2b67f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tony-core/src/main/java/com/linkedin/tony/TonyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ public boolean monitorApplication() throws YarnException, IOException, Interrupt
}

if (YarnApplicationState.FINISHED == appState || YarnApplicationState.FAILED == appState) {
updateTaskInfoAndReturn();
LOG.info("----- Application finished, status of ALL tasks -----");
// log detailed task info including URL so that users can check the URL of failed worker
// quickly without the need to scroll up to the top to find out the URL.
Expand All @@ -1089,6 +1088,7 @@ public boolean monitorApplication() throws YarnException, IOException, Interrupt
tonyConf.get(TonyConfigurationKeys.TONY_PORTAL_URL, TonyConfigurationKeys.DEFAULT_TONY_PORTAL_URL);
Utils.printTonyPortalUrl(tonyPortalUrl, appId.toString(), LOG);
result = FinalApplicationStatus.SUCCEEDED == finalApplicationStatus;
signalAMToFinish();
break;
}

Expand All @@ -1103,7 +1103,6 @@ public boolean monitorApplication() throws YarnException, IOException, Interrupt
}
}

signalAMToFinish();
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public void start() throws Exception {
yarnClusterConf = yarnCluster.getConfig();
hdfsClusterConf = dfsCluster.getConfiguration(0);
yarnClusterConf.setBoolean("ipc.client.fallback-to-simple-auth-allowed", true);
yarnClusterConf.setInt("ipc.client.connection.maxidletime", 1000);
yarnClusterConf.setInt("ipc.client.connect.max.retries", 3);
yarnClusterConf.setInt("ipc.client.connect.retry.interval", 10);
yarnClusterConf.setInt("ipc.client.connect.timeout", 1000);
yarnClusterConf.setInt("ipc.client.connect.max.retries.on.timeouts", 3);
hdfsClusterConf.setBoolean("ipc.client.fallback-to-simple-auth-allowed", true);
}

Expand Down

0 comments on commit c2b67f7

Please sign in to comment.