Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10144 Federation: Add missing FederationClientInterceptor APIs
  3. YARN-11180

Refactor some code of getNewApplication, submitApplication, forceKillApplication, getApplicationReport

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      1) FederationClientInterceptor#getNewApplication
      1.Increase request is empty check
      2.Use RouterServerUtil.logAndThrowException instead of throw YarnRuntime Exception.

      2) FederationClientInterceptor#submitApplication/forceKillApplication/getApplicationReport/getApplications
      1.Use RouterServerUtil.logAndThrowException instead of throw YarnRuntime Exception.
      2.Use string.format instead of +
      3.Fix Code Style.

      3) FederationClientInterceptor#getClusterMetrics
      1.Increase request is empty check

      4) FederationClientInterceptor#getClusterNodes/getQueueUserAcls/listReservations/getNodeToLabels/getLabelsToNodes/getClusterNodeLabels
      1.Use RouterServerUtil.logAndThrowException instead of throw YarnRuntime Exception.

      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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 40m
                  5h 40m