XMLWordPrintableJSON

Details

    • Reviewed

    Description

      While reading the relevant yarn-federation-router's code, I found the following issues with log method in FederationClientInterceptor:

      The log methods are inconsistent, some use the splicing method, and some use the placeholder method,as follows:

      org.apache.hadoop.yarn.server.router.clientrmsubmit.FederationClientInterceptor#getNewApplication

      for (int i = 0; i < numSubmitRetries; ++i) {
            SubClusterId subClusterId = getRandomActiveSubCluster(subClustersActive);
            LOG.debug(
                "getNewApplication try #{} on SubCluster {}", i, subClusterId);
            ApplicationClientProtocol clientRMProxy =
                getClientRMProxyForSubCluster(subClusterId);
        ...
      }

      org.apache.hadoop.yarn.server.router.clientrmsubmit.FederationClientInterceptor#submitApplication

      for (int i = 0; i < numSubmitRetries; ++i) {      
               SubClusterId subClusterId = policyFacade.getHomeSubcluster(
                request.getApplicationSubmissionContext(), blacklist);
            LOG.info("submitApplication appId" + applicationId + " try #" + i
                + " on SubCluster " + subClusterId);
         ...
      } 

      I think the first way is better.

      Attachments

        1. YARN-11137.01.patch
          5 kB
          Shilun Fan
        2. YARN-11137.02.patch
          5 kB
          Shilun Fan

        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 - 3h 20m
                  3h 20m