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

Add one second delay in between runs of mongod in log_contains_header.js

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2021-10-04
    • 28

    Description

      The log_contains_header.js test fails sporadically if both the first and second runs of mongod rotate the audit.log file at the same second, thereby causing the second rotation to skip renaming the audit.log file as the target file name already exists. This causes the second mongod to append log lines to the un-rotated audit.log file, instead of a blank file. When the test script looks at the audit.log file, it reads an unexpected header line, so it fails. Adding at least one-second delay in between the two runs will ensure this collision doesn't happen.

      Attachments

        Activity

          People

            erwin.pe@mongodb.com Erwin Pe
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: