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

unittest::Test::stopCapturingLogMessages has a sometimes fatal race condition

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.5
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Sharding 5 06/26/16
    • 0

    Description

      The unittest framework offers a facility for capturing log lines for analysis. That framework is not thread safe. The contract for appenders in the logging system is that they must be internally synchronized, and furthermore, the process of attaching and detaching appenders must be externally synchronized.

      Tests that use this facility and also launch multiple threads can crash if the log capture process is disabled while logging is happening, or if several threads are logging at once. Both of these problems should be mitigated.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: