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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.13, 3.4.4, 3.5.5
    • Component/s: Logging
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Repl 2017-03-27

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: