Hadoop Common
  1. Hadoop Common
  2. HADOOP-10413

Log statements must include pid and tid information

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 2.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arpit Agarwal
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development