Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81542

Improve logging in FSM suites

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-10-16

      Debugging can be hard in FSM suites since it is difficult to track the progress a specific thread is making. It would be helpful if the current thread ID was logged automatically in the message for fsm workloads

       

      SERVER-32095 already includes the tid in calls to print which jsTestLog uses, but since jsTestLog adds newlines in the thread ID gets separated from the actual log message, meaning that doing jsTestLog("Example log line") in thread 11 will result in

      [tid:11]
      
      [jsTest] ----
      Example log line
      [jsTest] ----

      It would be ideal if the thread ID was included in the actual logged message, something like

      [jsTest] ----
      [tid:11] Example log line
      [jsTest] ---- 

      This can likely be achieved by worker_thread.js overriding jsTestLog function to include the ID into each message line

            Assignee:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Reporter:
            sean.zimmerman@mongodb.com Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: