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

missing container information in FairScheduler preemption log.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Later
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: fairscheduler
    • Labels:
      None

      Description

      Add container information in FairScheduler preemption log to help debug. Currently the following log doesn't have container information

      LOG.info("Preempting container (prio=" + container.getContainer().getPriority() +
              "res=" + container.getContainer().getResource() +
              ") from queue " + queue.getName());
      

      So it will be very difficult to debug preemption related issue for FairScheduler.
      Even the container information is printed in the following code

              LOG.info("Killing container" + container +
                  " (after waiting for premption for " +
                  (getClock().getTime() - time) + "ms)");
      

      But we can't match these two logs based on the container ID.
      It will be very useful to add container information in the first log.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zxu Zhihai Xu
                Reporter:
                zxu Zhihai Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: