提交 e45fdf71 编写于 作者: R Robert Metzger

[FLINK-2392] Improve YARN test stability

上级 304139d4
......@@ -462,7 +462,7 @@ public abstract class YarnTestBase extends TestLogger {
runner.join(30000);
}
catch (InterruptedException e) {
LOG.debug("Interrupted while stopping runner", e);
LOG.warn("Interrupted while stopping runner", e);
}
LOG.warn("RunWithArgs runner stopped.");
}
......@@ -548,12 +548,10 @@ public abstract class YarnTestBase extends TestLogger {
@AfterClass
public static void tearDown() {
//shutdown YARN cluster
if (yarnCluster != null) {
LOG.info("Shutting down MiniYarn cluster");
yarnCluster.stop();
yarnCluster = null;
}
/*
We don't shut down the MiniCluster, as it is prone to blocking infinitely.
*/
// When we are on travis, we copy the tmp files of JUnit (containing the MiniYARNCluster log files)
// to <flinkRoot>/target/flink-yarn-tests-*.
// The files from there are picked up by the ./tools/travis_watchdog.sh script
......
......@@ -427,7 +427,7 @@ public class FlinkYarnCluster extends AbstractFlinkYarnCluster {
Await.ready(response, akkaDuration);
} catch(Exception e) {
throw new RuntimeException("Error while stopping YARN Application Client", e);
LOG.warn("Error while stopping YARN Application Client", e);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册