Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10413

Log statements must include pid and tid information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0, 3.0.0-alpha1
    • None
    • None
    • None

    Description

      Log statements do not include process IDs and thread IDs which makes debugging hard when the output of multiple requests is interleaved. It's even worse when looking at the output of test runs because the logs from multiple daemons are interleaved in the same file.

      Log4j does not provide a builtin mechanism for this, so we'd likely have to write some extra code. One possible solution is to initialize the IDs in the MDC and extract via ConversionPattern as described here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: