Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11357

Fix FederationClientInterceptor#submitApplication Can't Update SubClusterId

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      In YARN-11342, I refactored the submitApplication method, but in the process of implementation, the judgment condition of if was written incorrectly.

       

      ```

      // Step2. Query homeSubCluster according to ApplicationId.
      Boolean exists = existsApplicationHomeSubCluster(applicationId);

      ApplicationHomeSubCluster appHomeSubCluster =
      ApplicationHomeSubCluster.newInstance(applicationId, subClusterId);

      // should be !exists
      if (exists || retryCount == 0)

      { addApplicationHomeSubCluster(applicationId, appHomeSubCluster); }

      else

      { updateApplicationHomeSubCluster(subClusterId, applicationId, appHomeSubCluster); }

      ```

      Attachments

        Issue Links

          Activity

            People

              slfan1989 Shilun Fan
              slfan1989 Shilun Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: