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

Improve logging on JSON parsing failures from log-message tests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2023-10-30, Security 2023-11-13
    • 12

      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.

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