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

Using fail method instead of kill method when yarn application deployment error occures

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.14.3
    • 1.16.0
    • Deployment / YARN
    • None

    Description

      When deploy an application using yarn, it add a DeploymentFailureHook and if the deployment duration exceed the applicationSubmitTimeout(this situation always occures when the resource is not sufficient,etc.).

      Now it uses yarnClient.killApplication() to kill fail this deployment, I think maybe we should using yarnClient.failApplicationAttempt() to fail the deployment. IMO, using fail method instead of kill method can trigger the retry action and is more reasonable.

      The change is very simple and only affect the yarn application deployment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zlzhang0122 zlzhang0122
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: