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

Improve logging on JSON parsing failures from log-message tests

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2023-10-30, Security 2023-11-13
    • 12

    Description

      In jstests/noPassthrough/log-message.js, we cat and then manually parse out file contents to ensure that our log message is recorded properly with various encodings and escape characters.

      If another process or test fails and corrupts the log file in some way, the parsing will fail, and the test will fail without any way to know what happened, if the parsed line was valid or not, etc.

      We can add some extra log output for this manual parsing in the (unlikely) event that this happens in the future.

      Attachments

        Activity

          People

            adam.rayner@mongodb.com Adam Rayner
            adam.rayner@mongodb.com Adam Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: