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

getComputedResourceLimitForActiveUsers debug line does not show username

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.3
    • None
    • capacityscheduler
    • None

    Description

      Debug logging of the capacityscheduler doesn't log the username when printing the calculated user limit. In general you can deduct what user it is, but it would be great if the username is added to the logline.

      Example logline:

      2019-03-25 11:05:08,956 DEBUG capacity.UsersManager (UsersManager.java:getComputedResourceLimitForActiveUsers(525)) - userLimit is fetched. userLimit=<memory:3584, vCores:2>, userSpecificUserLimit=<memory:3584, vCores:2>, schedulingMode=RESPECT_PARTITION_EXCLUSIVITY, partition=

      Change code block in function getComputedResourceLimitForActiveUsers in file java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/UsersManager.java

      The actual block printing the line:

      LOG.debug("userLimit is fetched. userLimit={}, userSpecificUserLimit={},"
       + " schedulingMode={}, partition={}", userLimitResource,
       userSpecificUserLimit, schedulingMode, nodePartition);

      should be changed to contain the username

      It's a minor change and would help debugging

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevenwbe steven W
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: