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

Add a test-only clearLog command for clearing out RamLog, use it in tests when checking for a specific log message

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.13, 3.4.4, 3.5.5
    • Affects Version/s: None
    • Component/s: Logging
    • Labels:
    • Fully Compatible
    • v3.4, v3.2
    • Repl 2017-03-27
    • 0

      Some tests call the getLog command to try to wait for a certain log message to show up. If that message already showed up previously, however, the test can move on prematurely before the log message is actually generated at the point they want. Adding a clearLog command would enable such tests to clear the log before waiting for the message they are expecting to appear.

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            0 Vote for this issue
            2 Start watching this issue