You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/02/17 14:41:18 UTC

[jira] [Created] (FLINK-3434) Return value from flinkYarnClient#deploy() should be checked against null

Ted Yu created FLINK-3434:
-----------------------------

             Summary: Return value from flinkYarnClient#deploy() should be checked against null
                 Key: FLINK-3434
                 URL: https://issues.apache.org/jira/browse/FLINK-3434
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


In CliFrontend#getClient() :
{code}
        yarnCluster = flinkYarnClient.deploy();
        yarnCluster.connectToCluster();
{code}
Looking at FlinkYarnClientBase#deployInternal(), null return is possible:
{code}
    try {
      org.apache.flink.core.fs.FileSystem.setDefaultScheme(flinkConfiguration);
    } catch (IOException e) {
      LOG.error("Error while setting the default " +
        "filesystem scheme from configuration.", e);
      return null;
    }
{code}
We should check the return from deploy() before calling connectToCluster().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)