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

Ineffective null check in YarnClusterClient#getApplicationStatus()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.4, 1.1.0
    • None
    • None

    Description

      Here is related code:

          if(pollingRunner == null) {
            LOG.warn("YarnClusterClient.getApplicationStatus() has been called on an uninitialized cluster." +
                "The system might be in an erroneous state");
          }
          ApplicationReport lastReport = pollingRunner.getLastReport();
      

      If pollingRunner is null, NPE would result from the getLastReport() call.

      Attachments

        Activity

          People

            mxm Maximilian Michels
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: