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

Retrieving container log via NM webapp can hang with multibyte characters in log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3, 2.0.0-alpha
    • 2.0.3-alpha, 0.23.5
    • nodemanager
    • None

    Description

      ContainerLogsBlock.printLogs currently assumes that skipping N bytes in the log file is the same as skipping N characters, but that is not true when the log contains multibyte characters. This can cause the loop that skips a portion of the log to try to skip past the end of the file and loop forever (or until Jetty kills the worker thread).

      Attachments

        1. YARN-163.patch
          4 kB
          Jason Darrell Lowe
        2. YARN-163.patch
          4 kB
          Jason Darrell Lowe

        Activity

          People

            jlowe Jason Darrell Lowe
            jlowe Jason Darrell Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: