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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.13, 3.4.4, 3.5.5
    • None
    • Logging
    • Fully Compatible
    • v3.4, v3.2
    • Repl 2017-03-27
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: