Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3434

Return value from flinkYarnClient#deploy() should be checked against null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      In CliFrontend#getClient() :

              yarnCluster = flinkYarnClient.deploy();
              yarnCluster.connectToCluster();
      

      Looking at FlinkYarnClientBase#deployInternal(), null return is possible:

          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;
          }
      

      We should check the return from deploy() before calling connectToCluster().

      Attachments

        Activity

          People

            chesnay Chesnay Schepler
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: