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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2021-10-04
    • 28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: