提交 e6320a4c 编写于 作者: M Maximilian Michels

[FLINK-4089][yarn] fix null check in Yarn client

上级 78d3c61c
......@@ -345,11 +345,13 @@ public class YarnClusterClient extends ClusterClient {
if(!isConnected) {
throw new IllegalStateException("The cluster has been connected to the ApplicationMaster.");
}
ApplicationReport lastReport = null;
if(pollingRunner == null) {
LOG.warn("YarnClusterClient.getApplicationStatus() has been called on an uninitialized cluster." +
"The system might be in an erroneous state");
} else {
lastReport = pollingRunner.getLastReport();
}
ApplicationReport lastReport = pollingRunner.getLastReport();
if(lastReport == null) {
LOG.warn("YarnClusterClient.getApplicationStatus() has been called on a cluster that didn't receive a status so far." +
"The system might be in an erroneous state");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册