Add sleep intervals between fixture start/stops in audit shutdown tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.3.0, 5.0.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v5.0
    • Security 2022-01-24
    • 168
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      shutdown.js is failing with a "Target already exists during log rotation." error when nodes start.

      This is likely a result of https://jira.mongodb.org/browse/SERVER-61699 wherein we have the server fail to start if the log file cannot be rotated.

      The tests in question do not sleep between starts / restarts, thus filename collisions with the rotated log file are possible.

      Increasing a sleep to 2 seconds between start/stop commands should address this.

       

      [js_test:shutdown] s21273| 2022-01-05T13:04:24.807+00:00 D1 ASSERT 23074 [main] "User assertion","attr":{"error":"FileRenameFailed:  target=/data/db/job5/mongorunner/audit-logs/mongodb-eed21d46385b412690bddd83ca8f3feb-audit.log.2022-01-05T13-04-24, file=/data/db/job5/mongorunner/audit-logs/mongodb-eed21d46385b412690bddd83ca8f3feb-audit.log","file":"src/mongo/db/modules/enterprise/src/audit/audit_manager.cpp","line":299}
       

            Assignee:
            Adam Rayner
            Reporter:
            Adam Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: